From 4cc3956193dcf9fb8bc3f43df0bd6fc1de58946d Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 28 Jan 2021 15:40:35 -0800 Subject: [PATCH] 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: --- src/gallium/drivers/freedreno/freedreno_state.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/freedreno/freedreno_state.c b/src/gallium/drivers/freedreno/freedreno_state.c index b58e97a0711..617adf94daa 100644 --- a/src/gallium/drivers/freedreno/freedreno_state.c +++ b/src/gallium/drivers/freedreno/freedreno_state.c @@ -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 -- 2.34.1