zink: always insert current batch sparse semaphore into sparse wait chain

this avoids desync in the case where a batch performs multiple distinct
sparse commit operations

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35978>
This commit is contained in:
Mike Blumenkrantz
2025-07-07 11:07:53 -04:00
committed by Marge Bot
parent de9b4f1ae5
commit f335158cfa
+1 -1
View File
@@ -805,7 +805,7 @@ buffer_bo_commit(struct zink_context *ctx, struct zink_resource *res, uint32_t o
uint32_t va_page = offset / ZINK_SPARSE_BUFFER_PAGE_SIZE;
uint32_t end_va_page = va_page + DIV_ROUND_UP(size, ZINK_SPARSE_BUFFER_PAGE_SIZE);
VkSemaphore cur_sem = VK_NULL_HANDLE;
VkSemaphore cur_sem = *sem;
if (commit) {
while (va_page < end_va_page) {
uint32_t span_va_page;