summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChuanbo Weng <chuanbo.weng@intel.com>2016-09-14 01:07:02 +0800
committerEmil Velikov <emil.l.velikov@gmail.com>2016-09-21 12:19:19 +0100
commit1ceb775d5738365e82221773656c3b70e98bc1d3 (patch)
tree16ebc6563b737e1cce10ccf553076982f5a3be75 /include
parente5311ba1acba738346a18ef661b0f8bbc33bba8e (diff)
downloadexternal_mesa3d-1ceb775d5738365e82221773656c3b70e98bc1d3.zip
external_mesa3d-1ceb775d5738365e82221773656c3b70e98bc1d3.tar.gz
external_mesa3d-1ceb775d5738365e82221773656c3b70e98bc1d3.tar.bz2
dri: add offset attribute and bump version of EGLImage extensions.
Offset is useful for buffer sharing with other components, so add it to queryImage attributes. Signed-off-by: Chuanbo Weng <chuanbo.weng@intel.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'include')
-rw-r--r--include/GL/internal/dri_interface.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index 1c73cce..d0b1bc6 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -1094,7 +1094,7 @@ struct __DRIdri2ExtensionRec {
* extensions.
*/
#define __DRI_IMAGE "DRI_IMAGE"
-#define __DRI_IMAGE_VERSION 12
+#define __DRI_IMAGE_VERSION 13
/**
* These formats correspond to the similarly named MESA_FORMAT_*
@@ -1208,6 +1208,8 @@ struct __DRIdri2ExtensionRec {
#define __DRI_IMAGE_ATTRIB_FOURCC 0x2008 /* available in versions 11 */
#define __DRI_IMAGE_ATTRIB_NUM_PLANES 0x2009 /* available in versions 11 */
+#define __DRI_IMAGE_ATTRIB_OFFSET 0x200A /* available in versions 13 */
+
enum __DRIYUVColorSpace {
__DRI_YUV_COLOR_SPACE_UNDEFINED = 0,
__DRI_YUV_COLOR_SPACE_ITU_REC601 = 0x327F,