diff options
Diffstat (limited to 'src/gallium/state_trackers/dri/dri_query_renderer.c')
-rw-r--r-- | src/gallium/state_trackers/dri/dri_query_renderer.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/dri/dri_query_renderer.c b/src/gallium/state_trackers/dri/dri_query_renderer.c index ea31b6c1e10..80847e3d314 100644 --- a/src/gallium/state_trackers/dri/dri_query_renderer.c +++ b/src/gallium/state_trackers/dri/dri_query_renderer.c @@ -55,7 +55,13 @@ dri2_query_renderer_integer(__DRIscreen *_screen, int param, PIPE_TEXTURE_2D, 0, PIPE_BIND_RENDER_TARGET); return 0; - + case __DRI2_RENDERER_HAS_CONTEXT_PRIORITY: + value[0] = + screen->base.screen->get_param(screen->base.screen, + PIPE_CAP_CONTEXT_PRIORITY_MASK); + if (!value[0]) + return -1; + return 0; default: return driQueryRendererIntegerCommon(_screen, param, value); } |