summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2019-08-15 21:53:36 +0200
committerErik Faye-Lund <[email protected]>2019-09-02 12:45:45 +0000
commit1de9ba33a232c637121f5d2a5d0a43ff43fbb0b6 (patch)
tree9b3686c0a5ea79013a44a84ebfd28263c08a1e9c /src/mesa
parent06099d0e0c200d65a2a956bcdcf414b2802dc9c7 (diff)
mesa/x86: improve SSE-checks for MSVC
This enables some more SSE optimizations on MSVC builds. Signed-off-by: Erik Faye-Lund <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/x86/common_x86_features.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/x86/common_x86_features.h b/src/mesa/x86/common_x86_features.h
index 65634aa5dff..90105dafc6c 100644
--- a/src/mesa/x86/common_x86_features.h
+++ b/src/mesa/x86/common_x86_features.h
@@ -67,13 +67,13 @@
#define cpu_has_mmxext (_mesa_x86_cpu_features & X86_FEATURE_MMXEXT)
-#ifdef __SSE__
+#if defined(__SSE__) || (defined(_M_IX86_FP) && (_M_IX86_FP >= 1)) || defined(_M_X64)
#define cpu_has_xmm 1
#else
#define cpu_has_xmm (_mesa_x86_cpu_features & X86_FEATURE_XMM)
#endif
-#ifdef __SSE2__
+#if defined(__SSE2__) || (defined(_M_IX86_FP) && (_M_IX86_FP >= 2)) || defined(_M_X64)
#define cpu_has_xmm2 1
#else
#define cpu_has_xmm2 (_mesa_x86_cpu_features & X86_FEATURE_XMM2)