diff options
author | Sean V Kelley <[email protected]> | 2012-04-24 07:49:09 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2012-04-30 11:22:46 -0700 |
commit | 81f95ce13d92f15df2941a831ddb5a415f0f816e (patch) | |
tree | a39af63da0fe24900cb5d2ab18d8864bde3b9636 /src | |
parent | 1de377bd307f3c4aa63f1a14a693f81af54d56ee (diff) |
egl/android: Add support for RGBX_8888 used in Android native buffers
Add new format __DRI_IMAGE_FORMAT_XBGR8888 to __DRI_IMAGE.
HAL_PIXEL_FORMAT_RGBX_8888 now maps to __DRI_IMAGE_FORMAT_XBGR8888.
Signed-off-by: Sean V Kelley <[email protected]>
Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/egl/drivers/dri2/platform_android.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c index 1998941f829..66142cdee5f 100644 --- a/src/egl/drivers/dri2/platform_android.c +++ b/src/egl/drivers/dri2/platform_android.c @@ -311,6 +311,8 @@ dri2_create_image_android_native_buffer(_EGLDisplay *disp, format = __DRI_IMAGE_FORMAT_ABGR8888; break; case HAL_PIXEL_FORMAT_RGBX_8888: + format = __DRI_IMAGE_FORMAT_XBGR8888; + break; case HAL_PIXEL_FORMAT_RGB_888: case HAL_PIXEL_FORMAT_RGBA_5551: case HAL_PIXEL_FORMAT_RGBA_4444: |