radv: change the returned error in radv_signal_fence()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 21 Jun 2018 12:39:28 +0000 (14:39 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 22 Jun 2018 15:47:06 +0000 (17:47 +0200)
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 <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_device.c

index ffeb6450b331702d8de6e0159de3738e14b7644a..3c63d8c86d6e5107ec3faa09a95a0fd201cfa13f 100644 (file)
@@ -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;
 }