From 6aa9e95021c79f22ec9557035226563b017e796e Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 11 May 2023 10:29:00 -0400 Subject: [PATCH] zink: stop swizzling conditional render during batch flush conditional render is only supposed to be enabled during renderpasses, and this ends up doing mismatched start/stop in and out of renderpasses affects: GTF-GL46.gtf30.GL3Tests.conditional_render* cc: mesa-stable Part-of: --- src/gallium/drivers/zink/zink_context.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c index 46fc5a832eb..74905004f4a 100644 --- a/src/gallium/drivers/zink/zink_context.c +++ b/src/gallium/drivers/zink/zink_context.c @@ -3178,8 +3178,6 @@ flush_batch(struct zink_context *ctx, bool sync) if (ctx->clears_enabled) /* start rp to do all the clears */ zink_batch_rp(ctx); - bool conditional_render_active = ctx->render_condition.active; - zink_stop_conditional_render(ctx); zink_batch_no_rp_safe(ctx); zink_end_batch(ctx, batch); ctx->deferred_fence = NULL; @@ -3209,8 +3207,6 @@ flush_batch(struct zink_context *ctx, bool sync) VKCTX(CmdSetPatchControlPointsEXT)(ctx->batch.state->barrier_cmdbuf, 1); } update_feedback_loop_dynamic_state(ctx); - if (conditional_render_active) - zink_start_conditional_render(ctx); reapply_color_write(ctx); update_layered_rendering_state(ctx); tc_renderpass_info_reset(&ctx->dynamic_fb.tc_info);