zink: increment batch->descs_used during update_descriptors flushing
ensure that this actually flushes Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9273>
This commit is contained in:

committed by
Marge Bot

parent
4412d2b69d
commit
c7da40b2eb
@@ -525,6 +525,7 @@ update_descriptors(struct zink_context *ctx, struct zink_screen *screen, bool is
|
|||||||
zink_batch_reference_program(batch, &ctx->curr_program->base);
|
zink_batch_reference_program(batch, &ctx->curr_program->base);
|
||||||
|
|
||||||
if (batch->descs_used + num_descriptors >= batch->max_descs) {
|
if (batch->descs_used + num_descriptors >= batch->max_descs) {
|
||||||
|
batch->descs_used += num_descriptors;
|
||||||
if (is_compute)
|
if (is_compute)
|
||||||
zink_wait_on_batch(ctx, ZINK_COMPUTE_BATCH_ID);
|
zink_wait_on_batch(ctx, ZINK_COMPUTE_BATCH_ID);
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user