summaryrefslogtreecommitdiff
path: root/Source/Core/Common/x64CPUDetect.cpp
diff options
context:
space:
mode:
authorTechjar <tecknojar@gmail.com>2020-01-26 22:08:55 -0500
committerTechjar <tecknojar@gmail.com>2020-01-26 22:09:46 -0500
commit185e49d2a99c9edd8adca92d45dd5ba02e9892de (patch)
tree6b7d8b3d394501c292cfd309981609697856e83c /Source/Core/Common/x64CPUDetect.cpp
parent52b52631c2d241cb0eddebb85d3b0473955bab87 (diff)
x64CPUDetect: Add flag for slow PDEP/PEXT on AMD Zen
For some unknown reason PDEP and PEXT are ridiculously slow on AMD Zen architecture.
Diffstat (limited to 'Source/Core/Common/x64CPUDetect.cpp')
-rw-r--r--Source/Core/Common/x64CPUDetect.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/Common/x64CPUDetect.cpp b/Source/Core/Common/x64CPUDetect.cpp
index 0c3decba05..338c74b808 100644
--- a/Source/Core/Common/x64CPUDetect.cpp
+++ b/Source/Core/Common/x64CPUDetect.cpp
@@ -175,6 +175,7 @@ void CPUInfo::Detect()
}
bFlushToZero = bSSE;
+ bFastBMI2 = bBMI2 && !bZen;
if (max_ex_fn >= 0x80000004)
{