mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-15 22:08:17 +02:00
zink: relax unreachable() to debug_printf when waiting on batch
I forgot that this was a reachable case pre-tc, but if there's no longer a record of a batch_id then that just means it completed in the distant past Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9772>
This commit is contained in:
parent
e3f48ac829
commit
67b20bff09
1 changed files with 3 additions and 0 deletions
|
|
@ -1872,6 +1872,9 @@ zink_wait_on_batch(struct zink_context *ctx, enum zink_queue queue, uint32_t bat
|
|||
if ((*bs)->fence.batch_id == batch_id)
|
||||
return;
|
||||
}
|
||||
if (ctx->last_fence[queue] && ctx->last_fence[queue]->batch_id > batch_id)
|
||||
/* already completed */
|
||||
return;
|
||||
unreachable("should've found batch state");
|
||||
}
|
||||
fence = he->data;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue