radv: don't resubmit the same cs over and over while tracing
authorGrazvydas Ignotas <notasas@gmail.com>
Mon, 23 Jan 2017 21:16:42 +0000 (23:16 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 23 Jan 2017 21:27:05 +0000 (22:27 +0100)
Fixes: 97dfff54 ("radv: Dump command buffer on hang.")
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
CC: <mesa-stable@lists.freedesktop.org>
src/amd/vulkan/radv_device.c

index 9371536aa61490bbed2b4c5b5cb3d4abd4a97fec..4aa6af2bbdacd6e346afecb68a9a96b34a8f3c22 100644 (file)
@@ -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,