1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

vk: Switch programs if the primitive type changed

- This will change when EXT_dynamic_state is integrated
This commit is contained in:
kd-11 2023-01-10 16:16:10 +03:00 committed by kd-11
parent 756ad17c2c
commit f71e7ef1cc

View File

@ -1754,7 +1754,9 @@ bool VKGSRender::load_program()
m_graphics_state &= ~rsx::pipeline_state::invalidate_pipeline_bits;
}
else if (!(m_graphics_state & rsx::pipeline_state::pipeline_config_dirty) && m_program)
else if (!(m_graphics_state & rsx::pipeline_state::pipeline_config_dirty) &&
m_cached_draw_state.prim == rsx::method_registers.current_draw_clause.primitive &&
m_program)
{
if (!m_shader_interpreter.is_interpreter(m_program)) [[ likely ]]
{