summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGrazvydas Ignotas <notasas@gmail.com>2017-01-23 23:16:42 +0200
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>2017-01-23 22:27:05 +0100
commitf65b3641c3233f1697b96ea8126b578dae6de4f1 (patch)
tree4533659925e21ebe0cf47fc390eca872c65c358b /src
parentaa2ace8e4975419e723f78d624087637c57ef2fa (diff)
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 <notasas@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> CC: <mesa-stable@lists.freedesktop.org>
Diffstat (limited to 'src')
-rw-r--r--src/amd/vulkan/radv_device.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 9371536aa6..4aa6af2bbd 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,