From: Samuel Pitoiset Date: Tue, 14 Jul 2020 21:15:55 +0000 (+0200) Subject: radv: fix the error code when allocating a fresh imported syncobj fails X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3b7cd734e8a11a9af0cbc4c2445c7103044fc4a0;p=mesa.git radv: fix the error code when allocating a fresh imported syncobj fails It can only be an OOM error. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- 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); } }