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.
This commit is contained in:
kd-11 2019-05-30 19:52:02 +03:00 committed by kd-11
parent e118c9e5da
commit 6e92516070

View File

@ -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