summaryrefslogtreecommitdiffstats
path: root/include/GL/internal
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2010-04-27 11:04:51 -0400
committerKristian Høgsberg <[email protected]>2010-04-28 14:05:21 -0400
commita7a9a91d7b28e5b5faed509d00f0f951e3136b1b (patch)
tree49ffb474a4d58ab53785a912f2a623c12c17fe36 /include/GL/internal
parent0f5e8f77022f8bb4ac00128af6d217da747e63df (diff)
dri: Add DRI entrypoints to create a context for a given API
Diffstat (limited to 'include/GL/internal')
-rw-r--r--include/GL/internal/dri_interface.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index fa9b7c4bf21..4b9264166f9 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -736,7 +736,11 @@ struct __DRIdri2LoaderExtensionRec {
* constructors for DRI2.
*/
#define __DRI_DRI2 "DRI_DRI2"
-#define __DRI_DRI2_VERSION 1
+#define __DRI_DRI2_VERSION 2
+
+#define __DRI_API_OPENGL 0
+#define __DRI_API_GLES 1
+#define __DRI_API_GLES2 2
struct __DRIdri2ExtensionRec {
__DRIextension base;
@@ -755,6 +759,14 @@ struct __DRIdri2ExtensionRec {
__DRIcontext *shared,
void *loaderPrivate);
+ /* Since version 2 */
+ unsigned int (*getAPIMask)(__DRIscreen *screen);
+
+ __DRIcontext *(*createNewContextForAPI)(__DRIscreen *screen,
+ int api,
+ const __DRIconfig *config,
+ __DRIcontext *shared,
+ void *data);
};