summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/XFStructs.cpp
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2021-08-15 07:07:41 +0100
committerGitHub <noreply@github.com>2021-08-15 07:07:41 +0100
commit4c179fe448e64b2a2b4429596971b5ac2643f2a7 (patch)
treed376bb90f27ea45ae9f21078f8f36176400e24f9 /Source/Core/VideoCommon/XFStructs.cpp
parent99490cbd7f55721e5a5ff85f5c524c125244d5dc (diff)
parentf9d2d42a4c44459d391d5e48060f6b0aa303c5e9 (diff)
Merge pull request #10029 from Tilka/clipdisable
VideoCommon: report games that set bits in XFMEM_CLIPDISABLE
Diffstat (limited to 'Source/Core/VideoCommon/XFStructs.cpp')
-rw-r--r--Source/Core/VideoCommon/XFStructs.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/XFStructs.cpp b/Source/Core/VideoCommon/XFStructs.cpp
index ce763ada69..ebf9e8efab 100644
--- a/Source/Core/VideoCommon/XFStructs.cpp
+++ b/Source/Core/VideoCommon/XFStructs.cpp
@@ -48,10 +48,16 @@ static void XFRegWritten(int transferSize, u32 baseAddress, DataReader src)
break;
case XFMEM_CLIPDISABLE:
- // if (data & 1) {} // disable clipping detection
- // if (data & 2) {} // disable trivial rejection
- // if (data & 4) {} // disable cpoly clipping acceleration
+ {
+ ClipDisable setting{.hex = newValue};
+ if (setting.disable_clipping_detection)
+ DolphinAnalytics::Instance().ReportGameQuirk(GameQuirk::SETS_XF_CLIPDISABLE_BIT_0);
+ if (setting.disable_trivial_rejection)
+ DolphinAnalytics::Instance().ReportGameQuirk(GameQuirk::SETS_XF_CLIPDISABLE_BIT_1);
+ if (setting.disable_cpoly_clipping_acceleration)
+ DolphinAnalytics::Instance().ReportGameQuirk(GameQuirk::SETS_XF_CLIPDISABLE_BIT_2);
break;
+ }
case XFMEM_VTXSPECS: //__GXXfVtxSpecs, wrote 0004
break;