projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f341ee
)
egl_dri2: add support for RGBA_8888 android native buffer
author
Chia-I Wu
<olv@lunarg.com>
Sun, 21 Aug 2011 13:34:10 +0000
(21:34 +0800)
committer
Chia-I Wu
<olv@lunarg.com>
Fri, 9 Sep 2011 04:06:17 +0000
(12:06 +0800)
HAL_PIXEL_FORMAT_RGBA_8888 maps to __DRI_IMAGE_FORMAT_ABGR8888.
src/egl/drivers/dri2/platform_android.c
patch
|
blob
|
history
diff --git
a/src/egl/drivers/dri2/platform_android.c
b/src/egl/drivers/dri2/platform_android.c
index a0e4c65628db9bed276716f61bd73dfa9bb55ce2..3abd53636929bab74ed79457cb44f4ea49221772 100644
(file)
--- 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: