dri2: add __DRI_IMAGE_FORMAT_ABGR8888 to __DRI_IMAGE
authorChia-I Wu <olv@lunarg.com>
Sun, 21 Aug 2011 13:22:41 +0000 (21:22 +0800)
committerChia-I Wu <olv@lunarg.com>
Fri, 9 Sep 2011 04:06:16 +0000 (12:06 +0800)
Add a new format token, __DRI_IMAGE_FORMAT_ABGR8888, to __DRI_IMAGE.  It
maps to MESA_FORMAT_RGBA8888_REV in core mesa or
PIPE_FORMAT_R8G8B8A8_UNORM in gallium.  The format is used by
translucent surfaces on Android.

include/GL/internal/dri_interface.h

index eed159e11cdd480dd5e51cd6410f156d1d65e95a..8a9ca19491368d775df8ec19d7f215381bd795e1 100644 (file)
@@ -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_ABGR8888     0x1004
 
 #define __DRI_IMAGE_USE_SHARE          0x0001
 #define __DRI_IMAGE_USE_SCANOUT                0x0002