From: Chia-I Wu Date: Sun, 21 Aug 2011 13:22:41 +0000 (+0800) Subject: dri2: add __DRI_IMAGE_FORMAT_ABGR8888 to __DRI_IMAGE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e3cf7b69f24c186310eb3be4c462cccea028e6f2;p=mesa.git 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. --- 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