diff options
author | herb <herb@google.com> | 2016-06-23 09:40:30 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-23 09:40:30 -0700 |
commit | 4d1dd6643f2efa34d22d5fc3cf9cb4866252358e (patch) | |
tree | 6bd7dd298730fb8464e11aadbda66115085cd083 /src/opts | |
parent | 9cb6340a62a5d748e4189d50e51fa527c8c80c03 (diff) |
Add stub for avx.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087343002
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot
Review-Url: https://codereview.chromium.org/2087343002
Diffstat (limited to 'src/opts')
-rw-r--r-- | src/opts/SkBlend_opts.h | 4 | ||||
-rw-r--r-- | src/opts/SkOpts_avx.cpp | 15 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/opts/SkBlend_opts.h b/src/opts/SkBlend_opts.h index 2e6eff6277..2dcdcc7aaf 100644 --- a/src/opts/SkBlend_opts.h +++ b/src/opts/SkBlend_opts.h @@ -15,6 +15,10 @@ ninja -C out/Release dm nanobench ; and ./out/Release/dm --match Blend_opts ; an #include "SkNx.h" #include "SkPM4fPriv.h" +#if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 + #include <immintrin.h> +#endif + namespace SK_OPTS_NS { // An implementation of SrcOver from bytes to bytes in linear space that takes advantage of the diff --git a/src/opts/SkOpts_avx.cpp b/src/opts/SkOpts_avx.cpp new file mode 100644 index 0000000000..835e0c0ded --- /dev/null +++ b/src/opts/SkOpts_avx.cpp @@ -0,0 +1,15 @@ +/* + * Copyright 2016 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#include "SkOpts.h" + +#define SK_OPTS_NS sk_avx +#include "SkBlend_opts.h" + +namespace SkOpts { + void Init_avx() { } +} |