summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-07-30 14:27:19 +0200
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-07-30 17:12:51 +0200
commitabbf64a01b6a184d0d7c1ed5bd66d2b5c4ce00ba (patch)
tree267012dfc9811d8920ed88c2f2b5d90d5a2b1138
parent92314df55789efad03686bb09c4c4e0ec7eaab8a (diff)
__DRIimage: version 6, add new picture structure.
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@intel.com>
-rw-r--r--include/GL/internal/dri_interface.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index d3a66c52d2..658566d665 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