zink: assert that batches never use a timeline value of 0

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36029>
This commit is contained in:
Mike Blumenkrantz 2025-07-09 13:04:38 -04:00 committed by Marge Bot
parent 767ecc27cb
commit 8090e24567

View file

@ -617,6 +617,7 @@ submit_queue(void *data, void *gdata, int thread_index)
while (!bs->fence.batch_id)
bs->fence.batch_id = (uint32_t)p_atomic_inc_return(&screen->curr_batch);
bs->usage.usage = bs->fence.batch_id;
assert(bs->usage.usage);
bs->usage.unflushed = false;
uint64_t batch_id = bs->fence.batch_id;