psh: skip FixOverusedRegisters on all LRP instructions

This commit is contained in:
Luke Usher 2020-01-16 22:24:20 +00:00
parent b64fcff530
commit f2ae91785c
1 changed files with 2 additions and 2 deletions

View File

@ -5613,9 +5613,9 @@ bool PSH_XBOX_SHADER::FixOverusedRegisters()
int InsertPos = i;
// Skip this operation on LRP instructions targeting r0
// Skip this operation on LRP instructions
// This prevents "error X5765: Dest register for LRP cannot be the same as first or third source register" in WWE RAW2
if (Intermediate[i].Opcode == PO_LRP && Intermediate[i].Output[0].IsRegister(PARAM_R, 0)) {
if (Intermediate[i].Opcode == PO_LRP) {
continue;
}