From 67b20bff09a2cc314d6fc67372b7fa7ed9b137bd Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 23 Mar 2021 09:34:11 -0400 Subject: [PATCH] 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 Part-of: --- src/gallium/drivers/zink/zink_context.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c index b8419c48e1c..4f619e6789a 100644 --- a/src/gallium/drivers/zink/zink_context.c +++ b/src/gallium/drivers/zink/zink_context.c @@ -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;