From b4bc4c5c789ffd7d89960ec023b32caf1268baef Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 30 Oct 2021 18:26:23 -0700 Subject: [PATCH] GPU: Remove buggy rectangle culling. Transformed rectangles are uncommon, but culling them properly is a bit trickier than this, so remove for now. --- GPU/Common/SoftwareTransformCommon.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/GPU/Common/SoftwareTransformCommon.cpp b/GPU/Common/SoftwareTransformCommon.cpp index 2480224cb6..a24414ce5e 100644 --- a/GPU/Common/SoftwareTransformCommon.cpp +++ b/GPU/Common/SoftwareTransformCommon.cpp @@ -616,15 +616,7 @@ void SoftwareTransform::BuildDrawingParams(int prim, int vertexCount, u32 vertTy if (throughmode) { RotateUVThrough(trans); } else { - // If both transformed verts are outside Z, cull this rectangle entirely. - constexpr float outsideValue = 1.000030517578125f; - bool tlOutside = fabsf(transVtxTL.z) >= outsideValue; - bool brOutside = fabsf(transVtxBR.z) >= outsideValue; - if (tlOutside && brOutside) - continue; - if (!gstate.isDepthClampEnabled() && (tlOutside || brOutside)) - continue; - + // TODO: Should apply culling here, based on projection depth range. RotateUV(trans, params_.flippedY); }