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:
parent
756ad17c2c
commit
f71e7ef1cc
@ -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 ]]
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user