diff options
author | Emil Velikov <[email protected]> | 2014-08-14 18:26:55 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2014-08-15 17:35:37 +0100 |
commit | 679c2ef8a058824615fbc4c5aba40d65d1ed9170 (patch) | |
tree | 7a63d191e5c1b8dd3024f440507e6581fc7e1d6a /src/glx/drisw_priv.h | |
parent | 1bccf99c306372f2c281601be67c805952fd6bf6 (diff) |
glx/drisw: add support for DRI2rendererQueryExtension
The extension is used by GLX_MESA_query_renderer, which
can be provided for by hardware and software drivers.
v2: Use designated initializers.
v3: Move drisw_query_renderer_*() to dri2_query_renderer.c
Signed-off-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/glx/drisw_priv.h')
-rw-r--r-- | src/glx/drisw_priv.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/glx/drisw_priv.h b/src/glx/drisw_priv.h index a8de2a7b60d..5d479003114 100644 --- a/src/glx/drisw_priv.h +++ b/src/glx/drisw_priv.h @@ -45,6 +45,7 @@ struct drisw_screen const __DRIswrastExtension *swrast; const __DRItexBufferExtension *texBuffer; const __DRIcopySubBufferExtension *copySubBuffer; + const __DRI2rendererQueryExtension *rendererQuery; const __DRIconfig **driver_configs; @@ -62,3 +63,10 @@ struct drisw_drawable XVisualInfo *visinfo; XImage *ximage; }; + +_X_HIDDEN int +drisw_query_renderer_integer(struct glx_screen *base, int attribute, + unsigned int *value); +_X_HIDDEN int +drisw_query_renderer_string(struct glx_screen *base, int attribute, + const char **value); |