diff --git a/.pick_status.json b/.pick_status.json index 7917534e157..5b227a0e746 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -193,7 +193,7 @@ "description": "zink: compare against screen batch id when determining which semaphore to use", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "master_sha": null, "because_sha": "fa36a16c68489c7a8a7223c39fb0078f7d745bcb" }, diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c index 315619dc246..68aa1576326 100644 --- a/src/gallium/drivers/zink/zink_context.c +++ b/src/gallium/drivers/zink/zink_context.c @@ -1938,7 +1938,7 @@ timeline_wait(struct zink_context *ctx, uint32_t batch_id, uint64_t timeout) 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;