diff options
author | Ian Romanick <[email protected]> | 2011-12-01 13:52:53 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2012-01-02 12:41:45 -0800 |
commit | b45f77dc4c9662a774c19db764bb8f95c4f61073 (patch) | |
tree | b9739261379d37f9d274b3de8429bb5be58ea8d7 /src/glx/dri_common.h | |
parent | 4c7898cb13528ede00c7524849de4aeac81a6ac3 (diff) |
glx/dri: Add utility function dri2_convert_glx_attribs
This converts all of the GLX data from glXCreateContextAttribsARB to
the values expected by the DRI driver interfaces.
Signed-off-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glx/dri_common.h')
-rw-r--r-- | src/glx/dri_common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glx/dri_common.h b/src/glx/dri_common.h index 13b5ae471d1..3bcdebcc529 100644 --- a/src/glx/dri_common.h +++ b/src/glx/dri_common.h @@ -37,6 +37,7 @@ #define _DRI_COMMON_H #include <GL/internal/dri_interface.h> +#include <stdbool.h> typedef struct __GLXDRIconfigPrivateRec __GLXDRIconfigPrivate; @@ -66,4 +67,9 @@ extern void ErrorMessageF(const char *f, ...); extern void *driOpenDriver(const char *driverName); +extern bool +dri2_convert_glx_attribs(unsigned num_attribs, const uint32_t *attribs, + unsigned *major_ver, unsigned *minor_ver, + uint32_t *flags, unsigned *api, unsigned *error); + #endif /* _DRI_COMMON_H */ |