Module: Mesa Branch: main Commit: 3ee283e45557066c29fdb2000f7627d8996aeed0 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3ee283e45557066c29fdb2000f7627d8996aeed0
Author: Tatsuyuki Ishi <[email protected]> Date: Mon Nov 13 17:39:20 2023 +0900 zink: Fix missing sparse buffer bind synchronization. goto oopsies. Fixes: d1456a6b0ad ("zink: add semaphore handling for sparse binds") Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26171> --- src/gallium/drivers/zink/zink_bo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_bo.c b/src/gallium/drivers/zink/zink_bo.c index 7fd2bd4fe43..01949742732 100644 --- a/src/gallium/drivers/zink/zink_bo.c +++ b/src/gallium/drivers/zink/zink_bo.c @@ -959,7 +959,7 @@ zink_bo_commit(struct zink_screen *screen, struct zink_resource *res, unsigned l simple_mtx_lock(&screen->queue_lock); simple_mtx_lock(&bo->lock); if (res->base.b.target == PIPE_BUFFER) { - ok = buffer_bo_commit(screen, res, box->x, box->width, commit, sem); + ok = buffer_bo_commit(screen, res, box->x, box->width, commit, &cur_sem); goto out; }
