diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-04-22 12:47:41 -0700 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-04-22 12:49:45 -0700 |
commit | 234286c0f8b7d30ed49223c648d4c73c1a517ab3 (patch) | |
tree | c33912a53cc0444f5cf2df895366f90b9669a25b /src/glx | |
parent | c059565054e80bd6306e1c3a2c7b85ef33082d9f (diff) | |
download | external_mesa3d-234286c0f8b7d30ed49223c648d4c73c1a517ab3.zip external_mesa3d-234286c0f8b7d30ed49223c648d4c73c1a517ab3.tar.gz external_mesa3d-234286c0f8b7d30ed49223c648d4c73c1a517ab3.tar.bz2 |
DRI2: add config query extension
Add a new DRI2 configuration query extension. Allows for DRI2 client
code to query for common DRI2 configuration options.
Diffstat (limited to 'src/glx')
-rw-r--r-- | src/glx/dri_common.c | 5 | ||||
-rw-r--r-- | src/glx/glxclient.h | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/glx/dri_common.c b/src/glx/dri_common.c index e403416..dbc6082 100644 --- a/src/glx/dri_common.c +++ b/src/glx/dri_common.c @@ -403,6 +403,11 @@ dri2BindExtensions(__GLXscreenConfigs *psc) /* internal driver extension, no GL extension exposed */ } #endif + +#ifdef __DRI2_CONFIG_QUERY + if ((strcmp(extensions[i]->name, __DRI2_CONFIG_QUERY) == 0)) + psc->config = (__DRI2configQueryExtension *) extensions[i]; +#endif } } diff --git a/src/glx/glxclient.h b/src/glx/glxclient.h index 8e5dc78..e4b2c63 100644 --- a/src/glx/glxclient.h +++ b/src/glx/glxclient.h @@ -549,6 +549,10 @@ struct __GLXscreenConfigsRec const __DRI2flushExtension *f; #endif +#ifdef __DRI2_CONFIG_QUERY + const __DRI2configQueryExtension *config; +#endif + #endif /** |