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

Unified Diff: skia/BUILD.gn

Issue 2378993005: Skia: AVX2 -> HSW (Closed)
Patch Set: Created 4 years, 3 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: skia/BUILD.gn
diff --git a/skia/BUILD.gn b/skia/BUILD.gn
index 27dbb6a0052b23ed097fdae379ef797a8d62003a..6a4129d6436bb7a6452ad0fd089efbcab8b29b23 100644
--- a/skia/BUILD.gn
+++ b/skia/BUILD.gn
@@ -560,10 +560,16 @@ if (!skia_build_no_opts) {
"//build/config/compiler:no_chromium_code",
]
}
- source_set("skia_opts_avx2") {
- sources = skia_opts.avx2_sources
+ source_set("skia_opts_hsw") {
+ sources = skia_opts.hsw_sources
if (!is_win) {
- cflags = [ "-mavx2" ]
+ cflags = [
+ "-mavx2",
+ "-mbmi",
+ "-mbmi2",
+ "-mf16c",
+ "-mfma",
+ ]
}
if (is_win) {
cflags = [ "/arch:AVX2" ]
@@ -593,7 +599,7 @@ source_set("skia_opts") {
sources = skia_opts.sse2_sources
deps += [
":skia_opts_avx",
- ":skia_opts_avx2",
+ ":skia_opts_hsw",
":skia_opts_sse3",
":skia_opts_sse41",
":skia_opts_sse42",
« 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