zink: always use zink_batch_rp to init renderpass

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16476>
This commit is contained in:
Mike Blumenkrantz 2022-05-09 11:20:13 -04:00 committed by Marge Bot
parent 9a03beb2e9
commit 3e1cd9f623

View file

@ -2599,7 +2599,7 @@ flush_batch(struct zink_context *ctx, bool sync)
struct zink_batch *batch = &ctx->batch;
if (ctx->clears_enabled)
/* start rp to do all the clears */
zink_begin_render_pass(ctx);
zink_batch_rp(ctx);
bool conditional_render_active = ctx->render_condition.active;
zink_stop_conditional_render(ctx);
zink_end_render_pass(ctx);
@ -3237,7 +3237,7 @@ zink_flush(struct pipe_context *pctx,
/* triggering clears will force has_work */
if (!deferred && ctx->clears_enabled)
/* start rp to do all the clears */
zink_begin_render_pass(ctx);
zink_batch_rp(ctx);
if (ctx->needs_present && (flags & PIPE_FLUSH_END_OF_FRAME)) {
if (ctx->needs_present->obj->image)