diff --git a/rpcs3/Emu/RSX/VK/VKGSRender.cpp b/rpcs3/Emu/RSX/VK/VKGSRender.cpp index ccd78bd73..86e41ce69 100644 --- a/rpcs3/Emu/RSX/VK/VKGSRender.cpp +++ b/rpcs3/Emu/RSX/VK/VKGSRender.cpp @@ -399,7 +399,7 @@ VKGSRender::VKGSRender() : GSRender() } //create command buffer... - m_command_buffer_pool.create((*m_device)); + m_command_buffer_pool.create((*m_device), m_device->get_graphics_queue_family()); for (auto &cb : m_primary_cb_list) { @@ -410,7 +410,7 @@ VKGSRender::VKGSRender() : GSRender() m_current_command_buffer = &m_primary_cb_list[0]; //Create secondary command_buffer for parallel operations - m_secondary_command_buffer_pool.create((*m_device)); + m_secondary_command_buffer_pool.create((*m_device), m_device->get_graphics_queue_family()); m_secondary_command_buffer.create(m_secondary_command_buffer_pool, true); m_secondary_command_buffer.access_hint = vk::command_buffer::access_type_hint::all; diff --git a/rpcs3/Emu/RSX/VK/vkutils/commands.h b/rpcs3/Emu/RSX/VK/vkutils/commands.h index d11653551..39db23987 100644 --- a/rpcs3/Emu/RSX/VK/vkutils/commands.h +++ b/rpcs3/Emu/RSX/VK/vkutils/commands.h @@ -16,7 +16,7 @@ namespace vk command_pool() = default; ~command_pool() = default; - void create(vk::render_device& dev, u32 queue_family = 0); + void create(vk::render_device& dev, u32 queue_family); void destroy(); vk::render_device& get_owner() const;