diff options
author | Sean V Kelley <[email protected]> | 2012-04-24 07:49:10 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2012-04-30 11:22:46 -0700 |
commit | fd0082c47ecf1028bbb9e1e0dbc20173a3174772 (patch) | |
tree | 2a984255c3b53ca42b4a6d5cb686cb7fbea2c097 /src/mesa/drivers/dri/intel | |
parent | 81f95ce13d92f15df2941a831ddb5a415f0f816e (diff) |
i965: Support Android RGBX8888 format for EGL generated images
Enabled MESA_FORMAT_RGBX8888_REV for RGBX. Android software
requires RGBX8888 format to be supported for software rendering.
That requires EGL to be capable of generating images from this
format.
Signed-off-by: Sean V Kelley <[email protected]>
Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/intel')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_screen.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index ac6b22f7e06..9db56064bea 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.c +++ b/src/mesa/drivers/dri/intel/intel_screen.c @@ -211,6 +211,11 @@ intel_create_image_from_name(__DRIscreen *screen, image->internal_format = GL_RGBA; image->data_type = GL_UNSIGNED_BYTE; break; + case __DRI_IMAGE_FORMAT_XBGR8888: + image->format = MESA_FORMAT_RGBX8888_REV; + image->internal_format = GL_RGB; + image->data_type = GL_UNSIGNED_BYTE; + break; default: free(image); return NULL; @@ -327,6 +332,11 @@ intel_create_image(__DRIscreen *screen, image->internal_format = GL_RGBA; image->data_type = GL_UNSIGNED_BYTE; break; + case __DRI_IMAGE_FORMAT_XBGR8888: + image->format = MESA_FORMAT_RGBX8888_REV; + image->internal_format = GL_RGB; + image->data_type = GL_UNSIGNED_BYTE; + break; default: free(image); return NULL; |