summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2011-08-21 21:34:10 +0800
committerChia-I Wu <[email protected]>2011-09-09 12:06:17 +0800
commit48eb1fe6f9bca74364cf43c36e48ff3fd7cd53f5 (patch)
tree3d3ed0eb6dfad97c72bc432285aabef7f15edf53
parent4f341ee65a7f9017481108861adaf1ed2ca227c5 (diff)
egl_dri2: add support for RGBA_8888 android native buffer
HAL_PIXEL_FORMAT_RGBA_8888 maps to __DRI_IMAGE_FORMAT_ABGR8888.
-rw-r--r--src/egl/drivers/dri2/platform_android.c2
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 a0e4c65628d..3abd5363692 100644
--- a/src/egl/drivers/dri2/platform_android.c
+++ b/src/egl/drivers/dri2/platform_android.c
@@ -308,6 +308,8 @@ dri2_create_image_android_native_buffer(_EGLDisplay *disp,
format = __DRI_IMAGE_FORMAT_RGB565;
break;
case HAL_PIXEL_FORMAT_RGBA_8888:
+ format = __DRI_IMAGE_FORMAT_ABGR8888;
+ break;
case HAL_PIXEL_FORMAT_RGBX_8888:
case HAL_PIXEL_FORMAT_RGB_888:
case HAL_PIXEL_FORMAT_RGBA_5551: