diff options
author | Marek Olšák <[email protected]> | 2017-01-15 22:28:15 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-01-16 15:35:30 +0100 |
commit | 1fe7c8d3c9f7ace602627d9574117d5b447accd3 (patch) | |
tree | cba63d5d1b510214d4bc7b749c843e67d9019b4b /src/gallium/auxiliary/hud/hud_context.c | |
parent | 5b2eddc40f141f40b9c152f6e45180932288b38e (diff) |
gallium/hud: disable queries during HUD draw calls
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/hud/hud_context.c')
-rw-r--r-- | src/gallium/auxiliary/hud/hud_context.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c index 9f067f3dfdb..fd9a7bc2fcb 100644 --- a/src/gallium/auxiliary/hud/hud_context.c +++ b/src/gallium/auxiliary/hud/hud_context.c @@ -662,6 +662,16 @@ hud_draw(struct hud_context *hud, struct pipe_resource *tex) cso_restore_constant_buffer_slot0(cso, PIPE_SHADER_VERTEX); pipe_surface_reference(&surf, NULL); + + /* Start queries. */ + hud_batch_query_begin(hud->batch_query); + + LIST_FOR_EACH_ENTRY(pane, &hud->pane_list, head) { + LIST_FOR_EACH_ENTRY(gr, &pane->graph_list, head) { + if (gr->begin_query) + gr->begin_query(gr); + } + } } static void |