summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@vmware.com>2009-02-19 18:39:08 +0000
committerAlan Hourihane <alanh@vmware.com>2009-02-23 20:28:11 +0000
commit65562453fba69e862d5e3b381d18db9c40d9353c (patch)
tree02f8b11eace9763d3b6dd61773a0193dd2417c3a /include
parent4fc7cde770a66ff5bcf817af33a7b0b2c04354d5 (diff)
glx: add support for a reallyFlush() function before swap occurs.
Diffstat (limited to 'include')
-rw-r--r--include/GL/internal/dri_interface.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index 27cc1be7ff..a726b93234 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -78,6 +78,7 @@ typedef struct __DRIswrastExtensionRec __DRIswrastExtension;
typedef struct __DRIbufferRec __DRIbuffer;
typedef struct __DRIdri2ExtensionRec __DRIdri2Extension;
typedef struct __DRIdri2LoaderExtensionRec __DRIdri2LoaderExtension;
+typedef struct __DRI2flushExtensionRec __DRI2flushExtension;
/*@}*/
@@ -245,6 +246,16 @@ struct __DRItexBufferExtensionRec {
__DRIdrawable *pDraw);
};
+/**
+ * Used by drivers that implement DRI2
+ */
+#define __DRI2_FLUSH "DRI2_Flush"
+#define __DRI2_FLUSH_VERSION 1
+struct __DRI2flushExtensionRec {
+ __DRIextension base;
+ void (*flush)(__DRIdrawable *drawable);
+};
+
/**
* XML document describing the configuration options supported by the