tu: Fix tu_bo_make_zombie without queues
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

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:
Danylo Piliaiev 2026-05-04 15:49:01 +02:00 committed by Marge Bot
parent 27c870a283
commit ec42f873e9

View file

@ -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