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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user