Temporarily limit x86 SIMD to SSE2 only, to see effect on all benches and bots.
authormtklein <mtklein@chromium.org>
Mon, 16 Jun 2014 17:22:12 +0000 (10:22 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 16 Jun 2014 17:22:12 +0000 (10:22 -0700)
BUG=372232
R=reed@google.com, mtklein@google.com

Author: mtklein@chromium.org

Review URL: https://codereview.chromium.org/331193004

src/opts/opts_check_x86.cpp

index 6af4772..55cd082 100644 (file)
 #include "SkXfermode.h"
 #include "SkXfermode_proccoeff.h"
 
+// Temporarily disable everything but SSE2: crbug.com/372232.
+#if 1
+static inline bool supports_simd(int minLevel) {
+    SkASSERT(SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2);
+    return minLevel <= SK_CPU_SSE_LEVEL_SSE2;
+}
+#else
+
 #if defined(_MSC_VER) && defined(_WIN64)
 #include <intrin.h>
 #endif
@@ -116,6 +124,8 @@ static inline bool supports_simd(int minLevel) {
     }
 }
 
+#endif  // Temporarily disable everything but SSE2: crbug.com/372232.
+
 ////////////////////////////////////////////////////////////////////////////////
 
 SK_CONF_DECLARE( bool, c_hqfilter_sse, "bitmap.filter.highQualitySSE", false, "Use SSE optimized version of high quality image filters");