[Mesa-dev] [PATCH 3/8] dri2: add __DRI_IMAGE_FORMAT_RGBA8888_REV to __DRI_IMAGE

Chia-I Wu olvaffe at gmail.com
Tue Aug 30 22:46:34 PDT 2011


From: Chia-I Wu <olv at lunarg.com>

Add a new format token, __DRI_IMAGE_FORMAT_RGBA8888_REV, to __DRI_IMAGE.
It maps to MESA_FORMAT_RGBA8888_REV in core mesa or
PIPE_FORMAT_R8G8B8A8_UNORM in gallium.  It is the format of translucent
surfaces on Android.
---
 include/GL/internal/dri_interface.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index eed159e..03177a2 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -817,6 +817,7 @@ struct __DRIdri2ExtensionRec {
 #define __DRI_IMAGE_FORMAT_RGB565       0x1001
 #define __DRI_IMAGE_FORMAT_XRGB8888     0x1002
 #define __DRI_IMAGE_FORMAT_ARGB8888     0x1003
+#define __DRI_IMAGE_FORMAT_RGBA8888_REV 0x1004
 
 #define __DRI_IMAGE_USE_SHARE		0x0001
 #define __DRI_IMAGE_USE_SCANOUT		0x0002
-- 
1.7.5.4



More information about the mesa-dev mailing list