glx: Add glx_screen_vtable::create_context_attribs
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 30 Nov 2011 21:06:59 +0000 (13:06 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 2 Jan 2012 20:41:44 +0000 (12:41 -0800)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
src/glx/dri2_glx.c
src/glx/dri_glx.c
src/glx/glxclient.h
src/glx/indirect_glx.c

index a9bcebf9b5d2fa6aa6c754da6c8c8e0d09dd63b3..3c1212c6de07b9fd1b0853e0cbc22ec58457e1fb 100644 (file)
@@ -857,7 +857,8 @@ dri2BindExtensions(struct dri2_screen *psc, const __DRIextension **extensions)
 }
 
 static const struct glx_screen_vtable dri2_screen_vtable = {
-   dri2_create_context
+   dri2_create_context,
+   NULL
 };
 
 static struct glx_screen *
index 3c14ef05fff89f1f5bfbeb1cbec8132b2291e032..0cd7cca74fb108a27e363c55cd09251605ef33e3 100644 (file)
@@ -836,7 +836,8 @@ driBindExtensions(struct dri_screen *psc, const __DRIextension **extensions)
 }
 
 static const struct glx_screen_vtable dri_screen_vtable = {
-   dri_create_context
+   dri_create_context,
+   NULL
 };
 
 static struct glx_screen *
index 0011d39391df5e9497bff3e2c0d2db3db4babe7f..ecfd823c7eafa2425447d9b6c853d8320347b525 100644 (file)
@@ -468,6 +468,14 @@ struct glx_screen_vtable {
                                         struct glx_config *config,
                                         struct glx_context *shareList,
                                         int renderType);
+
+   struct glx_context *(*create_context_attribs)(struct glx_screen *psc,
+                                                struct glx_config *config,
+                                                struct glx_context *shareList,
+                                                unsigned num_attrib,
+                                                const uint32_t *attribs,
+                                                unsigned *error);
+
 };
 
 struct glx_screen
index 17689d45f2304801eab5ddc5ac788902b2b71646..b628688851a4dd1efa1747c1e1be0a1f4a4644b7 100644 (file)
@@ -437,7 +437,8 @@ indirect_create_context(struct glx_screen *psc,
 }
 
 struct glx_screen_vtable indirect_screen_vtable = {
-   indirect_create_context
+   indirect_create_context,
+   NULL
 };
 
 _X_HIDDEN struct glx_screen *