From: Samuel Pitoiset Date: Thu, 21 Jun 2018 12:39:28 +0000 (+0200) Subject: radv: change the returned error in radv_signal_fence() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=07832083d37fc033c77fe2e431983947053e96fd;p=mesa.git radv: change the returned error in radv_signal_fence() From my point of view, when we aren't able to submit a CS something terribly wrong happens and we are most likely going to lost the device. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index ffeb6450b33..3c63d8c86d6 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -2470,9 +2470,8 @@ static VkResult radv_signal_fence(struct radv_queue *queue, false, fence->fence); radv_free_sem_info(&sem_info); - /* TODO: find a better error */ if (ret) - return vk_error(queue->device->instance, VK_ERROR_OUT_OF_DEVICE_MEMORY); + return vk_error(queue->device->instance, VK_ERROR_DEVICE_LOST); return VK_SUCCESS; }