tu/drm/virtio: Fix dmabuf import

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27219>
This commit is contained in:
Rob Clark
2024-01-23 10:11:19 -08:00
committed by Marge Bot
parent 1a43970276
commit 354c26d0c0

View File

@@ -697,11 +697,14 @@ virtio_bo_init_dmabuf(struct tu_device *dev,
if (bo->refcnt != 0) {
p_atomic_inc(&bo->refcnt);
assert(bo->res_id == res_id);
*out_bo = bo;
result = VK_SUCCESS;
goto out_unlock;
}
bo->res_id = res_id;
result = tu_bo_init(dev, bo, handle, size, iova,
TU_BO_ALLOC_NO_FLAGS, "dmabuf");
if (result != VK_SUCCESS)