From 7f3b62324e738c7b8a8a90c165ae957a55be0671 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Fri, 25 Sep 2020 12:58:07 +0200 Subject: [PATCH] rhi: Switch command lists to QVLA Change-Id: Ic163533eee973f0ee2f3e2efe25390caa57dd659 Reviewed-by: Paul Olav Tvete --- src/gui/rhi/qrhid3d11_p_p.h | 2 +- src/gui/rhi/qrhigles2_p_p.h | 2 +- src/gui/rhi/qrhivulkan_p_p.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/rhi/qrhid3d11_p_p.h b/src/gui/rhi/qrhid3d11_p_p.h index e033c5b0b7..7c13544276 100644 --- a/src/gui/rhi/qrhid3d11_p_p.h +++ b/src/gui/rhi/qrhid3d11_p_p.h @@ -457,7 +457,7 @@ struct QD3D11CommandBuffer : public QRhiCommandBuffer ComputePass }; - QList commands; + QVarLengthArray commands; PassType recordingPass; QRhiRenderTarget *currentTarget; QRhiGraphicsPipeline *currentGraphicsPipeline; diff --git a/src/gui/rhi/qrhigles2_p_p.h b/src/gui/rhi/qrhigles2_p_p.h index c004b7f171..5940633151 100644 --- a/src/gui/rhi/qrhigles2_p_p.h +++ b/src/gui/rhi/qrhigles2_p_p.h @@ -514,7 +514,7 @@ struct QGles2CommandBuffer : public QRhiCommandBuffer ComputePass }; - QList commands; + QVarLengthArray commands; QVarLengthArray passResTrackers; int currentPassResTrackerIndex; diff --git a/src/gui/rhi/qrhivulkan_p_p.h b/src/gui/rhi/qrhivulkan_p_p.h index cb21945301..641ad5a87b 100644 --- a/src/gui/rhi/qrhivulkan_p_p.h +++ b/src/gui/rhi/qrhivulkan_p_p.h @@ -533,7 +533,7 @@ struct QVkCommandBuffer : public QRhiCommandBuffer } executeSecondary; } args; }; - QList commands; + QVarLengthArray commands; QVarLengthArray passResTrackers; int currentPassResTrackerIndex;