zink: don't start renderpasses during descriptor update

this is unnecessary

Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9292>
This commit is contained in:
Mike Blumenkrantz 2021-02-25 10:32:41 -05:00 committed by Marge Bot
parent ff99faf0cf
commit b2cf50ed6d

View file

@ -514,7 +514,7 @@ update_descriptors(struct zink_context *ctx, struct zink_screen *screen, bool is
dsl = ctx->curr_compute->base.dsl; dsl = ctx->curr_compute->base.dsl;
batch = &ctx->compute_batch; batch = &ctx->compute_batch;
} else { } else {
batch = zink_batch_rp(ctx); batch = zink_curr_batch(ctx);
num_descriptors = ctx->curr_program->base.num_descriptors; num_descriptors = ctx->curr_program->base.num_descriptors;
dsl = ctx->curr_program->base.dsl; dsl = ctx->curr_program->base.dsl;
} }
@ -525,7 +525,7 @@ update_descriptors(struct zink_context *ctx, struct zink_screen *screen, bool is
zink_wait_on_batch(ctx, ZINK_COMPUTE_BATCH_ID); zink_wait_on_batch(ctx, ZINK_COMPUTE_BATCH_ID);
else { else {
ctx->base.flush(&ctx->base, NULL, 0); ctx->base.flush(&ctx->base, NULL, 0);
batch = zink_batch_rp(ctx); batch = zink_curr_batch(ctx);
} }
} }
if (is_compute) if (is_compute)