From 1d628d087b96b95586d666b1431a42ab00ee22f3 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Tue, 13 Apr 2021 13:12:38 -0700 Subject: [PATCH] Add 1 when displaying the number of TEV stages --- Source/Core/VideoCommon/BPMemory.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/BPMemory.h b/Source/Core/VideoCommon/BPMemory.h index 61f3bbac50..36ec9ec0a9 100644 --- a/Source/Core/VideoCommon/BPMemory.h +++ b/Source/Core/VideoCommon/BPMemory.h @@ -911,6 +911,8 @@ union GenMode BitField<7, 1, u32> unused; // 1 bit unused? BitField<8, 1, bool, u32> flat_shading; // unconfirmed BitField<9, 1, bool, u32> multisampling; + // This value is 1 less than the actual number (0-15 map to 1-16). + // In other words there is always at least 1 tev stage BitField<10, 4, u32> numtevstages; BitField<14, 2, CullMode> cullmode; BitField<16, 3, u32> numindstages; @@ -937,7 +939,7 @@ struct fmt::formatter "ZFreeze: {}", mode.numtexgens, mode.numcolchans, mode.unused, mode.flat_shading ? "Yes" : "No", mode.multisampling ? "Yes" : "No", - mode.numtevstages, mode.cullmode, mode.numindstages, + mode.numtevstages + 1, mode.cullmode, mode.numindstages, mode.zfreeze ? "Yes" : "No"); } };