diff options
author | marha <marha@users.sourceforge.net> | 2011-12-23 15:22:40 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-12-23 15:22:40 +0100 |
commit | d1d04c7bd3f1465b7bb6690022d086c6bb005b70 (patch) | |
tree | 058884f2af1a2994f07d887c88bfdea63cc47703 /gl/internal/dri_interface.h | |
parent | 52b728b4b397d26f8841848ee921950e083991d0 (diff) | |
download | vcxsrv-d1d04c7bd3f1465b7bb6690022d086c6bb005b70.tar.gz vcxsrv-d1d04c7bd3f1465b7bb6690022d086c6bb005b70.tar.bz2 vcxsrv-d1d04c7bd3f1465b7bb6690022d086c6bb005b70.zip |
Synchronised files
Diffstat (limited to 'gl/internal/dri_interface.h')
-rw-r--r-- | gl/internal/dri_interface.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gl/internal/dri_interface.h b/gl/internal/dri_interface.h index 09b2f2c8a..7de74edb4 100644 --- a/gl/internal/dri_interface.h +++ b/gl/internal/dri_interface.h @@ -84,6 +84,7 @@ typedef struct __DRIbufferRec __DRIbuffer; typedef struct __DRIdri2ExtensionRec __DRIdri2Extension;
typedef struct __DRIdri2LoaderExtensionRec __DRIdri2LoaderExtension;
typedef struct __DRI2flushExtensionRec __DRI2flushExtension;
+typedef struct __DRI2throttleExtensionRec __DRI2throttleExtension;
/*@}*/
@@ -284,6 +285,27 @@ struct __DRI2flushExtensionRec { /**
+ * Extension that the driver uses to request
+ * throttle callbacks.
+ */
+
+#define __DRI2_THROTTLE "DRI2_Throttle"
+#define __DRI2_THROTTLE_VERSION 1
+
+enum __DRI2throttleReason {
+ __DRI2_THROTTLE_SWAPBUFFER,
+ __DRI2_THROTTLE_COPYSUBBUFFER,
+ __DRI2_THROTTLE_FLUSHFRONT
+};
+
+struct __DRI2throttleExtensionRec {
+ __DRIextension base;
+ void (*throttle)(__DRIcontext *ctx,
+ __DRIdrawable *drawable,
+ enum __DRI2throttleReason reason);
+};
+
+/**
* XML document describing the configuration options supported by the
* driver.
*/
@@ -819,6 +841,7 @@ struct __DRIdri2ExtensionRec { #define __DRI_IMAGE_FORMAT_RGB565 0x1001
#define __DRI_IMAGE_FORMAT_XRGB8888 0x1002
#define __DRI_IMAGE_FORMAT_ARGB8888 0x1003
+#define __DRI_IMAGE_FORMAT_ABGR8888 0x1004
#define __DRI_IMAGE_USE_SHARE 0x0001
#define __DRI_IMAGE_USE_SCANOUT 0x0002
|