mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 10:18:05 +02:00
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:
parent
9a03beb2e9
commit
3e1cd9f623
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue