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 <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
Samuel Pitoiset 2018-06-21 14:39:28 +02:00
parent 94bc06b196
commit 07832083d3
1 changed files with 1 additions and 2 deletions

View 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;
}