Skip to content

Commit 530a645

Browse files
committed
Revert "GS: Use inclusive req factor of 1 for sw renderer."
This reverts commit ff87bc5.
1 parent e435989 commit 530a645

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pcsx2/GS/GSState.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4069,9 +4069,8 @@ GSState::TextureMinMaxResult GSState::GetTextureMinMax(GIFRegTEX0 TEX0, GIFRegCL
40694069

40704070
// Need to make sure we don't oversample, this can cause trouble in grabbing textures.
40714071
// This may be inaccurate depending on the draw, but adding 1 all the time is wrong too.
4072-
// FIXME: It breaks sw renderer so let's still use 1 for SW mode for now.
4073-
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;
4074-
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;
4072+
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;
4073+
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;
40754074

40764075
// Roughly cut out the min/max of the read (Clamp)
40774076
switch (wms)

0 commit comments

Comments
 (0)