RSX: Return FP shader as is if no changes were made

This commit is contained in:
Elad 2025-03-05 18:36:20 +02:00
parent 75dc2a12e2
commit 7995181235
4 changed files with 17 additions and 6 deletions

View file

@ -1904,6 +1904,7 @@ namespace rsx
}
m_graphics_state.clear(rsx::pipeline_state::fragment_program_ucode_dirty);
fragment_program_invalidation_count++;
// Request for update of fragment constants if the program block is invalidated
m_graphics_state |= rsx::pipeline_state::fragment_constants_dirty;
@ -2046,6 +2047,7 @@ namespace rsx
ensure(!m_graphics_state.test(rsx::pipeline_state::fragment_program_ucode_dirty));
m_graphics_state.clear(rsx::pipeline_state::fragment_program_dirty);
fragment_program_invalidation_count++;
current_fragment_program.ctrl = m_ctx->register_state->shader_control() & (CELL_GCM_SHADER_CONTROL_32_BITS_EXPORTS | CELL_GCM_SHADER_CONTROL_DEPTH_EXPORT);
current_fragment_program.texcoord_control_mask = m_ctx->register_state->texcoord_control_mask();