diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2010-04-27 11:04:51 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2010-04-28 14:05:21 -0400 |
commit | a7a9a91d7b28e5b5faed509d00f0f951e3136b1b (patch) | |
tree | 49ffb474a4d58ab53785a912f2a623c12c17fe36 /src/mesa/drivers/dri/common/dri_util.h | |
parent | 0f5e8f77022f8bb4ac00128af6d217da747e63df (diff) |
dri: Add DRI entrypoints to create a context for a given API
Diffstat (limited to 'src/mesa/drivers/dri/common/dri_util.h')
-rw-r--r-- | src/mesa/drivers/dri/common/dri_util.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.h b/src/mesa/drivers/dri/common/dri_util.h index 038a81604f..4b7cd414b8 100644 --- a/src/mesa/drivers/dri/common/dri_util.h +++ b/src/mesa/drivers/dri/common/dri_util.h @@ -52,6 +52,7 @@ #include <drm_sarea.h> #include <xf86drm.h> #include "main/glheader.h" +#include "main/mtypes.h" #include "GL/internal/glcore.h" #include "GL/internal/dri_interface.h" @@ -146,8 +147,9 @@ struct __DriverAPIRec { /** * Context creation callback */ - GLboolean (*CreateContext)(const __GLcontextModes *glVis, - __DRIcontext *driContextPriv, + GLboolean (*CreateContext)(gl_api api, + const __GLcontextModes *glVis, + __DRIcontext *driContextPriv, void *sharedContextPrivate); /** @@ -527,6 +529,8 @@ struct __DRIscreenRec { /* The lock actually in use, old sarea or DRI2 */ drmLock *lock; + + unsigned int api_mask; }; extern void |