radv/amdgpu: always return VK_ERROR_INVALID_EXTERNAL_HANDLE for host ptr imports
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Less confusing than VK_ERROR_UNKNOWN.

Related to https://gitlab.freedesktop.org/mesa/mesa/-/issues/15144.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40574>
This commit is contained in:
Samuel Pitoiset 2026-03-23 17:23:25 +01:00 committed by Marge Bot
parent fa523aedd0
commit eecb37962c

View file

@ -697,11 +697,7 @@ radv_amdgpu_winsys_bo_from_ptr(struct radeon_winsys *_ws, void *pointer, uint64_
ret = ac_drm_create_bo_from_user_mem(ws->dev, pointer, size, &buf_handle);
if (ret) {
if (ret == -EINVAL) {
result = VK_ERROR_INVALID_EXTERNAL_HANDLE;
} else {
result = VK_ERROR_UNKNOWN;
}
result = VK_ERROR_INVALID_EXTERNAL_HANDLE;
goto error;
}