mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-09 03:38:18 +02:00
freedreno/drm: Fix bo_flush race
Once we've dropped the lock, we need to be referring to our own
temporary reference.
Fixes: 7b02bc6139 ("freedreno/drm: Drop fd_bo_fence")
Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40352>
This commit is contained in:
parent
395a5c2470
commit
f5d40636cd
1 changed files with 1 additions and 1 deletions
|
|
@ -501,7 +501,7 @@ bo_flush(struct fd_bo *bo)
|
|||
simple_mtx_unlock(&fence_lock);
|
||||
|
||||
for (unsigned i = 0; i < nr; i++) {
|
||||
fd_fence_flush(bo->fences[i]);
|
||||
fd_fence_flush(fences[i]);
|
||||
fd_fence_del(fences[i]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue