From 6e925160709c06b34d06817c32f7ee526c2ad945 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Thu, 30 May 2019 19:52:02 +0300 Subject: [PATCH] vk: Do not reset descriptors from the aux buffer when things are running slow - The aux buffer borrows its descriptors from the lagging frame, so they are still in use until the frame completes. --- rpcs3/Emu/RSX/VK/VKGSRender.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rpcs3/Emu/RSX/VK/VKGSRender.cpp b/rpcs3/Emu/RSX/VK/VKGSRender.cpp index 6b48c99791..2e3a39477b 100644 --- a/rpcs3/Emu/RSX/VK/VKGSRender.cpp +++ b/rpcs3/Emu/RSX/VK/VKGSRender.cpp @@ -1051,14 +1051,14 @@ void VKGSRender::begin() m_aux_frame_context.grab_resources(*m_current_frame); m_current_frame = &m_aux_frame_context; } - - verify(HERE), !m_current_frame->swap_command_buffer; - if (m_current_frame->used_descriptors) + else if (m_current_frame->used_descriptors) { m_current_frame->descriptor_pool.reset(0); m_current_frame->used_descriptors = 0; } + verify(HERE), !m_current_frame->swap_command_buffer; + m_current_frame->flags &= ~frame_context_state::dirty; } else