diff options
author | Rob Clark <[email protected]> | 2017-08-23 14:39:55 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2017-12-19 16:36:10 -0500 |
commit | 0015217c1eeb3743785ae5e33d004ef49dba3fa6 (patch) | |
tree | b6db81addc04082097c9862b3d06067975b429db /src/gallium/state_trackers/dri/dri_query_renderer.c | |
parent | 85789831b487c08eb4817fb902efc2e6b614d9ac (diff) |
gallium: plumb context priority through to driver
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Andres Rodriguez <[email protected]>
Reviewed-by: Wladimir J. van der Laan <[email protected]>
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); } |