aboutsummaryrefslogtreecommitdiff
path: root/gl
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-05-30 14:40:29 +0200
committermarha <marha@users.sourceforge.net>2012-05-30 14:40:29 +0200
commitcdb76f76457c170cc61f040aea1a48517488cb46 (patch)
tree619806e79b757c71a7e3efba63807fa5e5afac38 /gl
parentc229f618dd10327675815351ad67f5533f283a9c (diff)
downloadvcxsrv-cdb76f76457c170cc61f040aea1a48517488cb46.tar.gz
vcxsrv-cdb76f76457c170cc61f040aea1a48517488cb46.tar.bz2
vcxsrv-cdb76f76457c170cc61f040aea1a48517488cb46.zip
Update filesthatshouldbethesame.py and synchronised files
Diffstat (limited to 'gl')
-rw-r--r--gl/internal/dri_interface.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/gl/internal/dri_interface.h b/gl/internal/dri_interface.h
index af3a42ad7..fd29e8256 100644
--- a/gl/internal/dri_interface.h
+++ b/gl/internal/dri_interface.h
@@ -898,7 +898,7 @@ struct __DRIdri2ExtensionRec {
* extensions.
*/
#define __DRI_IMAGE "DRI_IMAGE"
-#define __DRI_IMAGE_VERSION 3
+#define __DRI_IMAGE_VERSION 4
/**
* These formats correspond to the similarly named MESA_FORMAT_*
@@ -910,10 +910,12 @@ struct __DRIdri2ExtensionRec {
#define __DRI_IMAGE_FORMAT_XRGB8888 0x1002
#define __DRI_IMAGE_FORMAT_ARGB8888 0x1003
#define __DRI_IMAGE_FORMAT_ABGR8888 0x1004
+#define __DRI_IMAGE_FORMAT_XBGR8888 0x1005
#define __DRI_IMAGE_USE_SHARE 0x0001
#define __DRI_IMAGE_USE_SCANOUT 0x0002
#define __DRI_IMAGE_USE_CURSOR 0x0004
+#define __DRI_IMAGE_USE_WRITE 0x0008
/**
* queryImage attributes
@@ -958,6 +960,13 @@ struct __DRIimageExtensionRec {
* \since 2
*/
GLboolean (*validateUsage)(__DRIimage *image, unsigned int use);
+
+ /**
+ * Write data into image.
+ *
+ * \since 4
+ */
+ int (*write)(__DRIimage *image, const void *buf, size_t count);
};