RSX: Do not invalidate FP analysis on same register writes

This commit is contained in:
Elad 2025-03-06 13:29:32 +02:00
parent 7995181235
commit 32df7315be
7 changed files with 141 additions and 20 deletions

View file

@ -770,6 +770,21 @@ bool fragment_program_compare::operator()(const RSXFragmentProgram& binary1, con
return true;
}
bool fragment_program_compare::config_only(const RSXFragmentProgram& binary1, const RSXFragmentProgram& binary2)
{
if (binary1.ucode_length != binary2.ucode_length ||
binary1.ctrl != binary2.ctrl ||
binary1.texture_state != binary2.texture_state ||
binary1.texcoord_control_mask != binary2.texcoord_control_mask ||
binary1.two_sided_lighting != binary2.two_sided_lighting ||
binary1.mrt_buffers_count != binary2.mrt_buffers_count)
{
return false;
}
return true;
}
namespace rsx
{
#if defined(ARCH_X64) || defined(ARCH_ARM64)