From f65b3641c3233f1697b96ea8126b578dae6de4f1 Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Mon, 23 Jan 2017 23:16:42 +0200 Subject: [PATCH] radv: don't resubmit the same cs over and over while tracing Fixes: 97dfff54 ("radv: Dump command buffer on hang.") Signed-off-by: Grazvydas Ignotas Reviewed-by: Bas Nieuwenhuizen CC: --- src/amd/vulkan/radv_device.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 9371536aa61..4aa6af2bbda 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -989,8 +989,7 @@ VkResult radv_QueueSubmit( if (queue->device->trace_bo) *queue->device->trace_id_ptr = 0; - ret = queue->device->ws->cs_submit(ctx, queue->queue_idx, cs_array, - pSubmits[i].commandBufferCount, + ret = queue->device->ws->cs_submit(ctx, queue->queue_idx, cs_array + j, advance, (struct radeon_winsys_sem **)pSubmits[i].pWaitSemaphores, b ? pSubmits[i].waitSemaphoreCount : 0, (struct radeon_winsys_sem **)pSubmits[i].pSignalSemaphores, -- 2.30.2