radv: return VK_ERROR_DEVICE_LOST if wait-for-idle failed or expired
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 10 Jul 2020 12:45:19 +0000 (14:45 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sun, 12 Jul 2020 11:17:42 +0000 (13:17 +0200)
commit55776a0ae0660d730293f11b435dc055753774fd
tree4e48eb525a0eb3f857cd3865e2e70a7d7d320685
parent351b5137d71b8dc944bad6dcb83cd93e6d38c44e
radv: return VK_ERROR_DEVICE_LOST if wait-for-idle failed or expired

When ctx_wait_idle failed, something really bad happened likely
a GPU hang. Make sure to return the appropriate Vulkan error code
in this case.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5843>
src/amd/vulkan/radv_device.c