mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-23 09:30:36 +02:00
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:
parent
4412d2b69d
commit
c7da40b2eb
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
if (batch->descs_used + num_descriptors >= batch->max_descs) {
|
||||
batch->descs_used += num_descriptors;
|
||||
if (is_compute)
|
||||
zink_wait_on_batch(ctx, ZINK_COMPUTE_BATCH_ID);
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue