diff options
author | Mike Klein <mtklein@chromium.org> | 2017-02-08 12:50:17 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-08 21:07:05 +0000 |
commit | 16c149664d3f95e1cabded8a1b7b3d105222c236 (patch) | |
tree | 87b89d4665f7936aad322d492c571f34ee83da72 /src/splicer/build_stages.py | |
parent | 30ec0b3735d5f728c2aea4184736a3e286a5ccda (diff) |
SkSplicer: begin on sse2/sse4.1 support
This lets us target older machines with SkSplicer.
SSE2 and SSE4.1 are the sweet spots if we're going to pick two more.
Nothing too interesting here except maybe the f16<->f32 code.
I rearranged a little to keep things consistent across platforms.
Next CL will get this into _generated.h and use it when appropriate.
Change-Id: Ibbdc61ea7a45d22b4f4058b01f75161ea74a7726
Reviewed-on: https://skia-review.googlesource.com/8193
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/splicer/build_stages.py')
-rwxr-xr-x | src/splicer/build_stages.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/splicer/build_stages.py b/src/splicer/build_stages.py index 900b47ff6d..a4fd97db4b 100755 --- a/src/splicer/build_stages.py +++ b/src/splicer/build_stages.py @@ -17,6 +17,17 @@ objdump = 'gobjdump' cflags = '-std=c++11 -Os -fomit-frame-pointer'.split() +sse2 = '-msse2 -mno-sse3 -mno-ssse3 -mno-sse4.1'.split() +subprocess.check_call(['clang++'] + cflags + sse2 + + ['-c', 'src/splicer/SkSplicer_stages.cpp'] + + ['-o', 'sse2.o']) + +sse41 = '-msse4.1'.split() +subprocess.check_call(['clang++'] + cflags + sse41 + + ['-c', 'src/splicer/SkSplicer_stages.cpp'] + + ['-o', 'sse41.o']) + + hsw = '-mavx2 -mfma -mf16c'.split() subprocess.check_call(['clang++'] + cflags + hsw + ['-c', 'src/splicer/SkSplicer_stages.cpp'] + |