From 8f32b1d60617b255c7012b086b4a1f20470b3a29 Mon Sep 17 00:00:00 2001 From: TJnotJT Date: Fri, 16 May 2025 23:02:20 -0400 Subject: [PATCH] Revert "GS: Use inclusive req factor of 1 for sw renderer." This reverts commit ff87bc58898f932db3aeb1b6d65e34504c3b3f7a. --- pcsx2/GS/GSState.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pcsx2/GS/GSState.cpp b/pcsx2/GS/GSState.cpp index d3ceac673c..493826462b 100644 --- a/pcsx2/GS/GSState.cpp +++ b/pcsx2/GS/GSState.cpp @@ -4107,9 +4107,8 @@ GSState::TextureMinMaxResult GSState::GetTextureMinMax(GIFRegTEX0 TEX0, GIFRegCL // Need to make sure we don't oversample, this can cause trouble in grabbing textures. // This may be inaccurate depending on the draw, but adding 1 all the time is wrong too. - // FIXME: It breaks sw renderer so let's still use 1 for SW mode for now. - const int inclusive_x_req = GSIsHardwareRenderer() ? (((m_vt.m_primclass < GS_TRIANGLE_CLASS) || (grad.x < 1.0f || (grad.x == 1.0f && m_vt.m_max.p.x != floor(m_vt.m_max.p.x)))) ? 1 : 0) : 1; - const int inclusive_y_req = GSIsHardwareRenderer() ? (((m_vt.m_primclass < GS_TRIANGLE_CLASS) || (grad.y < 1.0f || (grad.y == 1.0f && m_vt.m_max.p.y != floor(m_vt.m_max.p.y)))) ? 1 : 0) : 1; + const int inclusive_x_req = ((m_vt.m_primclass < GS_TRIANGLE_CLASS) || (grad.x < 1.0f || (grad.x == 1.0f && m_vt.m_max.p.x != floor(m_vt.m_max.p.x)))) ? 1 : 0; + const int inclusive_y_req = ((m_vt.m_primclass < GS_TRIANGLE_CLASS) || (grad.y < 1.0f || (grad.y == 1.0f && m_vt.m_max.p.y != floor(m_vt.m_max.p.y)))) ? 1 : 0; // Roughly cut out the min/max of the read (Clamp) switch (wms)