[Mesa-dev] [PATCH 2/5] dri2: add new image formats.
Gwenole Beauchesne
gb.devel at gmail.com
Mon Apr 23 02:54:12 PDT 2012
Expose DRI image formats for basic EXT_texture_rg formats (R8, RG88),
GL_LUMINANCE and GL_LUMINANCE_ALPHA.
---
include/GL/internal/dri_interface.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index d488ea8..a65ccc8 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -906,6 +906,10 @@ struct __DRIdri2ExtensionRec {
#define __DRI_IMAGE_FORMAT_XRGB8888 0x1002
#define __DRI_IMAGE_FORMAT_ARGB8888 0x1003
#define __DRI_IMAGE_FORMAT_ABGR8888 0x1004
+#define __DRI_IMAGE_FORMAT_R8 0x1005
+#define __DRI_IMAGE_FORMAT_RG88 0x1006
+#define __DRI_IMAGE_FORMAT_L8 0x1007
+#define __DRI_IMAGE_FORMAT_LA88 0x1008 /* luminance + alpha */
#define __DRI_IMAGE_USE_SHARE 0x0001
#define __DRI_IMAGE_USE_SCANOUT 0x0002
--
1.7.5.4
More information about the mesa-dev
mailing list