Correct indirect stage ref typos

YAGCD uses BI0/BC0/BI1/BC1/BI2/BC2/BI3/BC3, so I'm pretty sure the BI2/BC3/BI4/BC4 names are a typo that just was propagated.
This commit is contained in:
Pokechu22
2021-04-10 15:17:42 -07:00
parent a6f6211dde
commit 072304404c
2 changed files with 14 additions and 30 deletions

View File

@ -66,9 +66,9 @@ struct pixel_shader_uid_data
u32 tevindref_bi1 : 3;
u32 tevindref_bc1 : 3;
u32 tevindref_bi2 : 3;
u32 tevindref_bc2 : 3;
u32 tevindref_bi3 : 3;
u32 tevindref_bc3 : 3;
u32 tevindref_bi4 : 3;
u32 tevindref_bc4 : 3;
void SetTevindrefValues(int index, u32 texcoord, u32 texmap)
{
@ -84,55 +84,39 @@ struct pixel_shader_uid_data
}
else if (index == 2)
{
tevindref_bc3 = texcoord;
tevindref_bc2 = texcoord;
tevindref_bi2 = texmap;
}
else if (index == 3)
{
tevindref_bc4 = texcoord;
tevindref_bi4 = texmap;
tevindref_bc3 = texcoord;
tevindref_bi3 = texmap;
}
}
u32 GetTevindirefCoord(int index) const
{
if (index == 0)
{
return tevindref_bc0;
}
else if (index == 1)
{
return tevindref_bc1;
}
else if (index == 2)
{
return tevindref_bc3;
}
return tevindref_bc2;
else if (index == 3)
{
return tevindref_bc4;
}
return tevindref_bc3;
return 0;
}
u32 GetTevindirefMap(int index) const
{
if (index == 0)
{
return tevindref_bi0;
}
else if (index == 1)
{
return tevindref_bi1;
}
else if (index == 2)
{
return tevindref_bi2;
}
else if (index == 3)
{
return tevindref_bi4;
}
return tevindref_bi3;
return 0;
}