mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
radv/amdgpu: always return VK_ERROR_INVALID_EXTERNAL_HANDLE for host ptr imports
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:
parent
fa523aedd0
commit
eecb37962c
1 changed files with 1 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue