Mesa (master): Update dri state tracker to use new API aware context create
Kristian Høgsberg
krh at kemper.freedesktop.org
Sun May 2 20:28:49 UTC 2010
Module: Mesa
Branch: master
Commit: 38e3fb23da9f75632992767fa3a01d335b9bb7ab
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=38e3fb23da9f75632992767fa3a01d335b9bb7ab
Author: Xavier Chantry <chantry.xavier at gmail.com>
Date: Sun May 2 16:27:25 2010 -0400
Update dri state tracker to use new API aware context create
---
.../state_trackers/dri/common/dri_context.c | 2 +-
.../state_trackers/dri/common/dri_context.h | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/gallium/state_trackers/dri/common/dri_context.c b/src/gallium/state_trackers/dri/common/dri_context.c
index a808d2d..203682e 100644
--- a/src/gallium/state_trackers/dri/common/dri_context.c
+++ b/src/gallium/state_trackers/dri/common/dri_context.c
@@ -49,7 +49,7 @@ dri_init_extensions(struct dri_context *ctx)
}
GLboolean
-dri_create_context(const __GLcontextModes * visual,
+dri_create_context(gl_api api, const __GLcontextModes * visual,
__DRIcontext * cPriv, void *sharedContextPrivate)
{
__DRIscreen *sPriv = cPriv->driScreenPriv;
diff --git a/src/gallium/state_trackers/dri/common/dri_context.h b/src/gallium/state_trackers/dri/common/dri_context.h
index 9fe6b58..54e56c6 100644
--- a/src/gallium/state_trackers/dri/common/dri_context.h
+++ b/src/gallium/state_trackers/dri/common/dri_context.h
@@ -34,6 +34,7 @@
#include "pipe/p_compiler.h"
#include "dri_wrapper.h"
+#include "main/mtypes.h"
struct pipe_context;
struct pipe_fence;
@@ -83,7 +84,8 @@ struct dri_context *
dri_get_current(__DRIscreen * driScreenPriv);
boolean
-dri_create_context(const __GLcontextModes * visual,
+dri_create_context(gl_api api,
+ const __GLcontextModes * visual,
__DRIcontext * driContextPriv,
void *sharedContextPrivate);
More information about the mesa-commit
mailing list