From e3cf7b69f24c186310eb3be4c462cccea028e6f2 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Sun, 21 Aug 2011 21:22:41 +0800 Subject: [PATCH] dri2: add __DRI_IMAGE_FORMAT_ABGR8888 to __DRI_IMAGE 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h index eed159e11cd..8a9ca194913 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_ABGR8888 0x1004 #define __DRI_IMAGE_USE_SHARE 0x0001 #define __DRI_IMAGE_USE_SCANOUT 0x0002 -- 2.30.2