Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(504)

Unified Diff: src/opts/opts_check_x86.cpp

Issue 331193004: Temporarily limit x86 SIMD to SSE2 only, to see effect on all benches and bots. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/opts/opts_check_x86.cpp
diff --git a/src/opts/opts_check_x86.cpp b/src/opts/opts_check_x86.cpp
index 6af47729cd06a59bd973c0e8621c7dcddc5d6268..55cd082b824bfe64c9261cffdd755601db041e08 100644
--- a/src/opts/opts_check_x86.cpp
+++ b/src/opts/opts_check_x86.cpp
@@ -21,6 +21,14 @@
#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");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698