From 07832083d37fc033c77fe2e431983947053e96fd Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 21 Jun 2018 14:39:28 +0200 Subject: [PATCH] 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 --- src/amd/vulkan/radv_device.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.30.2