radv: return better Vulkan error codes when VkQueueSubmit() fails
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 13 Jul 2020 08:35:56 +0000 (10:35 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 17 Jul 2020 15:25:15 +0000 (17:25 +0200)
commit2b796c768526e0728df10201fd311db2311f9412
tree2806bf5e3e4e615cacb95b67a00411b34497f011
parent1829bdd0da7046f43207a62f74f119defead6abf
radv: return better Vulkan error codes when VkQueueSubmit() fails

The driver shouldn't abort when a CS submission fails.

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/5876>
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_radeon_winsys.h
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c