mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
tu: Fix tu_bo_make_zombie without queues
Fixes: 9ee6a23b8f ("tu: Support VK_KHR_maintenance9")
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41341>
This commit is contained in:
parent
27c870a283
commit
ec42f873e9
1 changed files with 4 additions and 1 deletions
|
|
@ -87,7 +87,10 @@ tu_bo_make_zombie(struct tu_device *dev, struct tu_bo *bo)
|
|||
#endif
|
||||
vma->iova = bo->iova;
|
||||
vma->size = bo->size;
|
||||
vma->fence = p_atomic_read(&dev->queues[0]->fence);
|
||||
if (dev->queue_count[0] > 0)
|
||||
vma->fence = p_atomic_read(&dev->queues[0]->fence);
|
||||
else
|
||||
vma->fence = -1;
|
||||
|
||||
/* Must be cleared under the VMA mutex, or another thread could race to
|
||||
* reap the VMA, closing the BO and letting a new GEM allocation produce
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue