From 3f027b269843d4989406f4583ae34fc094607bcd Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Mon, 9 May 2022 10:17:02 -0500 Subject: [PATCH] GS:SW: Clamp Z with unsigned clamp --- pcsx2/GS/Renderers/SW/GSDrawScanlineCodeGenerator.all.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/GS/Renderers/SW/GSDrawScanlineCodeGenerator.all.cpp b/pcsx2/GS/Renderers/SW/GSDrawScanlineCodeGenerator.all.cpp index 1bd11b07ff..3dec108c7c 100644 --- a/pcsx2/GS/Renderers/SW/GSDrawScanlineCodeGenerator.all.cpp +++ b/pcsx2/GS/Renderers/SW/GSDrawScanlineCodeGenerator.all.cpp @@ -1095,7 +1095,7 @@ void GSDrawScanlineCodeGenerator2::TestZ(const XYm& temp1, const XYm& temp2) const u8 amt = (u8)((m_sel.zpsm & 0x3) * 8); pcmpeqd(temp1, temp1); psrld(temp1, amt); - pminsd(xym0, temp1); + pminud(xym0, temp1); } if (m_sel.zwrite)