From 2cc309dd39f7218b9e2ee60b4e5e556231198b7c Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 3 Feb 2022 17:15:56 -0500 Subject: [PATCH] zink: always terminate conditional render when flushing a batch we might not know whether conditional render is active, so forcibly disable when necessary Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c index 0b303e4e2a8..9a502e0aa97 100644 --- a/src/gallium/drivers/zink/zink_context.c +++ b/src/gallium/drivers/zink/zink_context.c @@ -2440,6 +2440,7 @@ flush_batch(struct zink_context *ctx, bool sync) if (ctx->clears_enabled) /* start rp to do all the clears */ zink_begin_render_pass(ctx); + zink_stop_conditional_render(ctx); zink_end_render_pass(ctx); zink_end_batch(ctx, batch); ctx->deferred_fence = NULL;