fix pInstruction typo

This commit is contained in:
Anthony Miles 2019-12-14 17:30:34 +13:00 committed by patrickvl
parent ab1061634d
commit f8b1e35482
1 changed files with 5 additions and 3 deletions

View File

@ -543,14 +543,16 @@ static void VshAddIntermediateOpcode(
VSH_INTERMEDIATE_FORMAT* pIntermediate = VshNewIntermediate(pShader);
pIntermediate->InstructionType = instr_type;
pIntermediate->MAC = instr_type == IMD_MAC ? pInstruction->MAC : MAC_NOP;
pIntermediate->ILU = instr_type == IMD_ILU ? pInstruction->ILU : ILU_NOP;
if (pInstruction->MAC == MAC_ARL) {
pIntermediate->ILU = instr_type == IMD_ILU ? pInstruction->ILU : ILU_NOP;
if (pIntermediate->MAC == MAC_ARL) {
pIntermediate->Output.Type = IMD_OUTPUT_A0X;
pIntermediate->Output.Address = 0;
} else {
pIntermediate->Output.Type = IMD_OUTPUT_R;
pIntermediate->Output.Address = R;
}
}
pIntermediate->Output.Mask = mask;
pIntermediate->IndexesWithA0_X = pInstruction->a0x;
VshAddParameters(pInstruction, pIntermediate->ILU, pIntermediate->MAC, pIntermediate->Parameters);