Commit ca59c390 authored by Samuel Pitoiset's avatar Samuel Pitoiset
Browse files

radv: always check the return error when submitting a CS


Signed-off-by: default avatarSamuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: default avatarBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
parent 68d95176
...@@ -3175,6 +3175,7 @@ radv_sparse_image_opaque_bind_memory(struct radv_device *device, ...@@ -3175,6 +3175,7 @@ radv_sparse_image_opaque_bind_memory(struct radv_device *device,
struct radeon_winsys_fence *base_fence = fence ? fence->fence : NULL; struct radeon_winsys_fence *base_fence = fence ? fence->fence : NULL;
bool fence_emitted = false; bool fence_emitted = false;
VkResult result; VkResult result;
int ret;
for (uint32_t i = 0; i < bindInfoCount; ++i) { for (uint32_t i = 0; i < bindInfoCount; ++i) {
struct radv_winsys_sem_info sem_info; struct radv_winsys_sem_info sem_info;
...@@ -3200,11 +3201,16 @@ radv_sparse_image_opaque_bind_memory(struct radv_device *device, ...@@ -3200,11 +3201,16 @@ radv_sparse_image_opaque_bind_memory(struct radv_device *device,
return result; return result;
if (pBindInfo[i].waitSemaphoreCount || pBindInfo[i].signalSemaphoreCount) { if (pBindInfo[i].waitSemaphoreCount || pBindInfo[i].signalSemaphoreCount) {
queue->device->ws->cs_submit(queue->hw_ctx, queue->queue_idx, ret = queue->device->ws->cs_submit(queue->hw_ctx, queue->queue_idx,
&queue->device->empty_cs[queue->queue_family_index], &queue->device->empty_cs[queue->queue_family_index],
1, NULL, NULL, 1, NULL, NULL,
&sem_info, NULL, &sem_info, NULL,
false, base_fence); false, base_fence);
if (ret) {
radv_loge("failed to submit CS %d\n", i);
abort();
}
fence_emitted = true; fence_emitted = true;
if (fence) if (fence)
fence->submitted = true; fence->submitted = true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment