freedreno: Force updating active queries on batch reordering.
authorEric Anholt <eric@anholt.net>
Thu, 28 Jan 2021 23:40:35 +0000 (15:40 -0800)
committerMarge Bot <eric+marge@anholt.net>
Wed, 10 Feb 2021 03:46:25 +0000 (03:46 +0000)
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>

src/gallium/drivers/freedreno/freedreno_state.c

index b58e97a07118911259b66909b0fe781e40e74882..617adf94daa29ab70c8f57bdf20afff713a111be 100644 (file)
@@ -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