diff --git a/Source/Core/VideoCommon/BPMemory.h b/Source/Core/VideoCommon/BPMemory.h index f22ceda2cd..61f3bbac50 100644 --- a/Source/Core/VideoCommon/BPMemory.h +++ b/Source/Core/VideoCommon/BPMemory.h @@ -600,13 +600,13 @@ struct fmt::formatter union RAS1_IREF { BitField<0, 3, u32> bi0; // Indirect tex stage 0 ntexmap - BitField<3, 3, u32> bc0; // Indirect tex stage 0 ntexmap + BitField<3, 3, u32> bc0; // Indirect tex stage 0 ntexcoord BitField<6, 3, u32> bi1; BitField<9, 3, u32> bc1; BitField<12, 3, u32> bi2; - BitField<15, 3, u32> bc3; // Typo? - BitField<18, 3, u32> bi4; - BitField<21, 3, u32> bc4; + BitField<15, 3, u32> bc2; + BitField<18, 3, u32> bi3; + BitField<21, 3, u32> bc3; u32 hex; u32 getTexCoord(int i) const { return (hex >> (6 * i + 3)) & 7; } @@ -625,8 +625,8 @@ struct fmt::formatter "Stage 1 ntexmap: {}\nStage 1 ntexcoord: {}\n" "Stage 2 ntexmap: {}\nStage 2 ntexcoord: {}\n" "Stage 3 ntexmap: {}\nStage 3 ntexcoord: {}", - indref.bi0, indref.bc0, indref.bi1, indref.bc1, indref.bi2, indref.bc3, - indref.bi4, indref.bc4); + indref.bi0, indref.bc0, indref.bi1, indref.bc1, indref.bi2, indref.bc2, + indref.bi3, indref.bc3); } }; diff --git a/Source/Core/VideoCommon/PixelShaderGen.h b/Source/Core/VideoCommon/PixelShaderGen.h index a9ffa25498..08724274ee 100644 --- a/Source/Core/VideoCommon/PixelShaderGen.h +++ b/Source/Core/VideoCommon/PixelShaderGen.h @@ -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; }