semaphores are per-screen now, so check the screen value
Fixes:
fa36a16c684 ("zink: make timeline semaphores per-screen")
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10267>
wi.sType = VK_STRUCTURE_TYPE_SEMAPHORE_WAIT_INFO;
wi.semaphoreCount = 1;
/* handle batch_id overflow */
- wi.pSemaphores = batch_id > ctx->curr_batch ? &screen->prev_sem : &screen->sem;
+ wi.pSemaphores = batch_id > screen->curr_batch ? &screen->prev_sem : &screen->sem;
uint64_t batch_id64 = batch_id;
wi.pValues = &batch_id64;
bool success = false;