freedreno: Force updating active queries on batch reordering.

The state of queries for the batch we've just switched to may not reflect
the current active flag, so make sure that we update at the start of the
next draw.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8873>
This commit is contained in:
Eric Anholt
2021-01-28 15:40:35 -08:00
committed by Marge Bot
parent 1bab56e1ba
commit 4cc3956193
@@ -255,6 +255,7 @@ fd_set_framebuffer_state(struct pipe_context *pctx,
fd_batch_reference(&ctx->batch, NULL);
fd_context_all_dirty(ctx);
ctx->update_active_queries = true;
if (old_batch && old_batch->blit && !old_batch->back_blit) {
/* for blits, there is not really much point in hanging on