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 <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15018>
This commit is contained in:
Mike Blumenkrantz 2022-02-03 17:15:56 -05:00
parent 082b42fbda
commit 2cc309dd39

View 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;