Module: Mesa Branch: master Commit: 3b7cd734e8a11a9af0cbc4c2445c7103044fc4a0 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3b7cd734e8a11a9af0cbc4c2445c7103044fc4a0
Author: Samuel Pitoiset <[email protected]> Date: Tue Jul 14 23:15:55 2020 +0200 radv: fix the error code when allocating a fresh imported syncobj fails It can only be an OOM error. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5921> --- src/amd/vulkan/radv_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index d69ad9d0b61..5a1a67288d3 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -7064,7 +7064,7 @@ static VkResult radv_import_sync_fd(struct radv_device *device, if (!syncobj_handle) { int ret = device->ws->create_syncobj(device->ws, &syncobj_handle); if (ret) { - return vk_error(device->instance, VK_ERROR_INVALID_EXTERNAL_HANDLE); + return vk_error(device->instance, VK_ERROR_OUT_OF_HOST_MEMORY); } } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
