summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexManagerBase.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2020-04-01 17:32:18 +1000
committerStenzek <stenzek@gmail.com>2020-04-02 12:52:16 +1000
commitff7180cac422cf20c174031d7d41c05961234828 (patch)
treeb135fad5ab486940a820dcb267081a959436beb1 /Source/Core/VideoCommon/VertexManagerBase.cpp
parenta9c1dcf6565517b75ec33e935931249afdb3427c (diff)
Analytics: Add quirk for mismatched xf/bp texgens/colors
Diffstat (limited to 'Source/Core/VideoCommon/VertexManagerBase.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexManagerBase.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/VertexManagerBase.cpp b/Source/Core/VideoCommon/VertexManagerBase.cpp
index 56f9f68b26..4fb4cbeb41 100644
--- a/Source/Core/VideoCommon/VertexManagerBase.cpp
+++ b/Source/Core/VideoCommon/VertexManagerBase.cpp
@@ -14,6 +14,7 @@
#include "Common/Logging/Log.h"
#include "Common/MathUtil.h"
+#include "Core/Analytics.h"
#include "Core/ConfigManager.h"
#include "VideoCommon/BPMemory.h"
@@ -352,6 +353,20 @@ void VertexManagerBase::Flush()
"Skipping draw. Please report on the issue tracker.",
xfmem.numTexGen.numTexGens, bpmem.genMode.numtexgens.Value(),
xfmem.numChan.numColorChans, bpmem.genMode.numcolchans.Value());
+
+ // Analytics reporting so we can discover which games have this problem, that way when we
+ // eventually simulate the behavior we have test cases for it.
+ if (xfmem.numTexGen.numTexGens != bpmem.genMode.numtexgens)
+ {
+ DolphinAnalytics::Instance().ReportGameQuirk(
+ GameQuirk::MISMATCHED_GPU_TEXGENS_BETWEEN_XF_AND_BP);
+ }
+ if (xfmem.numChan.numColorChans != bpmem.genMode.numcolchans)
+ {
+ DolphinAnalytics::Instance().ReportGameQuirk(
+ GameQuirk::MISMATCHED_GPU_TEXGENS_BETWEEN_XF_AND_BP);
+ }
+
return;
}