diff options
author | Samuel Pitoiset <[email protected]> | 2020-07-13 10:35:56 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2020-07-17 17:25:15 +0200 |
commit | 2b796c768526e0728df10201fd311db2311f9412 (patch) | |
tree | 2806bf5e3e4e615cacb95b67a00411b34497f011 /src/amd/vulkan/radv_radeon_winsys.h | |
parent | 1829bdd0da7046f43207a62f74f119defead6abf (diff) |
radv: return better Vulkan error codes when VkQueueSubmit() fails
The driver shouldn't abort when a CS submission fails.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5876>
Diffstat (limited to 'src/amd/vulkan/radv_radeon_winsys.h')
-rw-r--r-- | src/amd/vulkan/radv_radeon_winsys.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/amd/vulkan/radv_radeon_winsys.h b/src/amd/vulkan/radv_radeon_winsys.h index 2cf68dc8edb..4830c7bf2bd 100644 --- a/src/amd/vulkan/radv_radeon_winsys.h +++ b/src/amd/vulkan/radv_radeon_winsys.h @@ -277,16 +277,16 @@ struct radeon_winsys { void (*cs_grow)(struct radeon_cmdbuf * cs, size_t min_size); - int (*cs_submit)(struct radeon_winsys_ctx *ctx, - int queue_index, - struct radeon_cmdbuf **cs_array, - unsigned cs_count, - struct radeon_cmdbuf *initial_preamble_cs, - struct radeon_cmdbuf *continue_preamble_cs, - struct radv_winsys_sem_info *sem_info, - const struct radv_winsys_bo_list *bo_list, /* optional */ - bool can_patch, - struct radeon_winsys_fence *fence); + VkResult (*cs_submit)(struct radeon_winsys_ctx *ctx, + int queue_index, + struct radeon_cmdbuf **cs_array, + unsigned cs_count, + struct radeon_cmdbuf *initial_preamble_cs, + struct radeon_cmdbuf *continue_preamble_cs, + struct radv_winsys_sem_info *sem_info, + const struct radv_winsys_bo_list *bo_list, /* optional */ + bool can_patch, + struct radeon_winsys_fence *fence); void (*cs_add_buffer)(struct radeon_cmdbuf *cs, struct radeon_winsys_bo *bo); |