mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-06 15:01:18 +12:00
Refactor more GX2 code to use LatteReg.h
This commit is contained in:
parent
96800c6f97
commit
524188bb7a
10 changed files with 536 additions and 262 deletions
|
@ -228,13 +228,13 @@ void _fetchShaderDecompiler_parseInstruction_VTX_SEMANTIC(LatteFetchShader* pars
|
|||
else if (srcSelX == LatteClauseInstruction_VTX::SRC_SEL::SEL_Y)
|
||||
{
|
||||
// use alu divisor 1
|
||||
attribGroup->attrib[groupAttribIndex].aluDivisor = (sint32)contextRegister[mmVGT_INSTANCE_STEP_RATE_0 + 0];
|
||||
attribGroup->attrib[groupAttribIndex].aluDivisor = (sint32)contextRegister[Latte::REGADDR::VGT_INSTANCE_STEP_RATE_0];
|
||||
cemu_assert_debug(attribGroup->attrib[groupAttribIndex].aluDivisor > 0);
|
||||
}
|
||||
else if (srcSelX == LatteClauseInstruction_VTX::SRC_SEL::SEL_Z)
|
||||
{
|
||||
// use alu divisor 2
|
||||
attribGroup->attrib[groupAttribIndex].aluDivisor = (sint32)contextRegister[mmVGT_INSTANCE_STEP_RATE_0 + 1];
|
||||
attribGroup->attrib[groupAttribIndex].aluDivisor = (sint32)contextRegister[Latte::REGADDR::VGT_INSTANCE_STEP_RATE_1];
|
||||
cemu_assert_debug(attribGroup->attrib[groupAttribIndex].aluDivisor > 0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue