From 397a795e755465cf467c06399bf3351dad012548 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sun, 20 Feb 2022 17:36:32 +0300 Subject: [PATCH] vk: Remove hardcoded command buffer list length --- rpcs3/Emu/RSX/VK/VKGSRenderTypes.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/RSX/VK/VKGSRenderTypes.hpp b/rpcs3/Emu/RSX/VK/VKGSRenderTypes.hpp index 7b3f322f62..c1db493ee9 100644 --- a/rpcs3/Emu/RSX/VK/VKGSRenderTypes.hpp +++ b/rpcs3/Emu/RSX/VK/VKGSRenderTypes.hpp @@ -319,7 +319,7 @@ namespace vk class command_buffer_chain { atomic_t m_current_index = 0; - std::array m_cb_list; + std::array m_cb_list; public: command_buffer_chain() = default; @@ -351,7 +351,7 @@ namespace vk inline command_buffer_chunk* next() { - const auto result_id = ++m_current_index % VK_MAX_ASYNC_CB_COUNT; + const auto result_id = ++m_current_index % Count; auto result = &m_cb_list[result_id]; if (!result->poke())