[Mesa-dev] [PATCH 4/5] __DRIimage: version 6, add new picture structure.
Gwenole Beauchesne
gwenole.beauchesne at intel.com
Mon Jul 30 09:45:18 PDT 2012
The addition in version 6 enables creating EGLImages with different picture
structure for supporting interlaced textures. The new flags are only valid
in createSubImage() format field. Should the driver support those, it should
report version as 6, and determe the underlying picture format by masking
out the picture structure flags.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne at intel.com>
---
include/GL/internal/dri_interface.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index d3a66c5..658566d 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -912,7 +912,7 @@ struct __DRIdri2ExtensionRec {
* extensions.
*/
#define __DRI_IMAGE "DRI_IMAGE"
-#define __DRI_IMAGE_VERSION 5
+#define __DRI_IMAGE_VERSION 6
/**
* These formats correspond to the similarly named MESA_FORMAT_*
@@ -933,6 +933,11 @@ struct __DRIdri2ExtensionRec {
#define __DRI_IMAGE_FORMAT_GR88 0x1007
#define __DRI_IMAGE_FORMAT_NONE 0x1008
+#define __DRI_IMAGE_STRUCTURE_MASK 0xc000 /* Since version 6 */
+#define __DRI_IMAGE_STRUCTURE_FRAME 0x0000
+#define __DRI_IMAGE_STRUCTURE_TOP_FIELD 0x4000
+#define __DRI_IMAGE_STRUCTURE_BOTTOM_FIELD 0x8000
+
#define __DRI_IMAGE_USE_SHARE 0x0001
#define __DRI_IMAGE_USE_SCANOUT 0x0002
#define __DRI_IMAGE_USE_CURSOR 0x0004
--
1.7.9.5
More information about the mesa-dev
mailing list