zink: always terminate conditional render when flushing a batch
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 3 Feb 2022 22:15:56 +0000 (17:15 -0500)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 15 Feb 2022 01:56:55 +0000 (20:56 -0500)
we might not know whether conditional render is active,
so forcibly disable when necessary

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15018>

src/gallium/drivers/zink/zink_context.c

index 0b303e4..9a502e0 100644 (file)
@@ -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;