From 262c3483cf3563a72a970c4591523304ec98e5b5 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 13 May 2017 17:58:51 -0700 Subject: [PATCH 1/2] GE Debugger: Fix bias display for auto mip mode. --- Windows/GEDebugger/TabState.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Windows/GEDebugger/TabState.cpp b/Windows/GEDebugger/TabState.cpp index 26f27294e5..20ea2cdc3a 100644 --- a/Windows/GEDebugger/TabState.cpp +++ b/Windows/GEDebugger/TabState.cpp @@ -657,7 +657,7 @@ void FormatStateRow(wchar_t *dest, const TabStateRow &info, u32 value, bool enab case CMD_FMT_TEXLEVEL: { const char *mipLevelModes[] = { - "auto", + "auto + bias", "bias", "slope + bias", }; @@ -665,9 +665,7 @@ void FormatStateRow(wchar_t *dest, const TabStateRow &info, u32 value, bool enab const int biasFixed = (s8)(value >> 16); const float bias = (float)biasFixed / 16.0f; - if (mipLevel == 0 && bias == 0) { - swprintf(dest, L"%S", mipLevelModes[mipLevel]); - } else if (mipLevel == 1 || mipLevel == 2) { + if (mipLevel == 0 || mipLevel == 1 || mipLevel == 2) { swprintf(dest, L"%S: %f", mipLevelModes[mipLevel], bias); } else { swprintf(dest, L"%06x", value); From 94c138fd83aaa5d9e1f0dc4b2288d691f72f17a4 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 14 May 2017 08:48:26 -0700 Subject: [PATCH 2/2] SoftGPU: Fix texture vertex preview in debugger. --- GPU/Software/TransformUnit.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/GPU/Software/TransformUnit.cpp b/GPU/Software/TransformUnit.cpp index a796089b59..bc1db18244 100644 --- a/GPU/Software/TransformUnit.cpp +++ b/GPU/Software/TransformUnit.cpp @@ -536,15 +536,15 @@ bool TransformUnit::GetCurrentSimpleVertices(int count, std::vector