[PATCH 06/20] glx: Add glx_screen_vtable::create_context_attribs
Ian Romanick
idr at freedesktop.org
Tue Dec 20 12:31:09 PST 2011
From: Ian Romanick <ian.d.romanick at intel.com>
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/glx/dri2_glx.c | 3 ++-
src/glx/dri_glx.c | 3 ++-
src/glx/glxclient.h | 8 ++++++++
src/glx/indirect_glx.c | 3 ++-
4 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c
index a9bcebf..3c1212c 100644
--- a/src/glx/dri2_glx.c
+++ b/src/glx/dri2_glx.c
@@ -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 *
diff --git a/src/glx/dri_glx.c b/src/glx/dri_glx.c
index 3c14ef0..0cd7cca 100644
--- a/src/glx/dri_glx.c
+++ b/src/glx/dri_glx.c
@@ -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 *
diff --git a/src/glx/glxclient.h b/src/glx/glxclient.h
index 0011d39..ecfd823 100644
--- a/src/glx/glxclient.h
+++ b/src/glx/glxclient.h
@@ -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
diff --git a/src/glx/indirect_glx.c b/src/glx/indirect_glx.c
index 17689d4..b628688 100644
--- a/src/glx/indirect_glx.c
+++ b/src/glx/indirect_glx.c
@@ -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 *
--
1.7.6.4
More information about the xorg-devel
mailing list