summaryrefslogtreecommitdiffstats
path: root/include/GL
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2010-05-11 09:09:30 -0400
committerKristian Høgsberg <[email protected]>2010-05-11 10:23:53 -0400
commit97a6cbc6dd8e62653d7481c6f651f2a5fb10aa0e (patch)
tree86cdef471bde80a1a9799e1deb42417862b32133 /include/GL
parent1f6648418dd8194ba7c3333f0b493ebaa0b941ec (diff)
dri_interface.h: Add new __DRI_USE_INVALIDATE extension
The presence of this extension indicates to the DRI driver that the loader will call invalidate in the __DRI2_FLUSH extension, whenever the needs to query for new buffers. This means that the DRI driver can drop the polling in glViewport().
Diffstat (limited to 'include/GL')
-rw-r--r--include/GL/internal/dri_interface.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index 172669e3955..e4c2b3a3eba 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -428,6 +428,26 @@ struct __DRIswrastLoaderExtensionRec {
};
/**
+ * Invalidate loader extension. The presence of this extension
+ * indicates to the DRI driver that the loader will call invalidate in
+ * the __DRI2_FLUSH extension, whenever the needs to query for new
+ * buffers. This means that the DRI driver can drop the polling in
+ * glViewport().
+ *
+ * The extension doesn't provide any functionality, it's only use to
+ * indicate to the driver that it can use the new semantics. A DRI
+ * driver can use this to switch between the different semantics or
+ * just refuse to initialize if this extension isn't present.
+ */
+#define __DRI_USE_INVALIDATE "DRI_UseInvalidate"
+#define __DRI_USE_INVALIDATE_VERSION 1
+
+typedef struct __DRIuseInvalidateExtensionRec __DRIuseInvalidateExtension;
+struct __DRIuseInvalidateExtensionRec {
+ __DRIextension base;
+};
+
+/**
* The remaining extensions describe driver extensions, immediately
* available interfaces provided by the driver. To start using the
* driver, dlsym() for the __DRI_DRIVER_EXTENSIONS symbol and look for