aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkNx.h
diff options
context:
space:
mode:
authorGravatar msarett <msarett@google.com>2016-09-16 11:01:27 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-16 11:01:27 -0700
commitc71a9b7f53938b4f33f36f48e867b8b72cc1cc61 (patch)
tree8fbb6b55eb00f5fb5b55e89d97076f199cc0e205 /src/core/SkNx.h
parent046cb56c6c1bb40779c81b115271ed0e8196b48b (diff)
Revert of Support Float32 output from SkColorSpaceXform (patchset #7 id:140001 of https://codereview.chromium.org/2339233003/ )
Reason for revert: Hitting an assert Original issue's description: > Support Float32 output from SkColorSpaceXform > > * Adds Float32 support to SkColorSpaceXform > * Changes API to allows clients to ask for F32, updates clients to > new API > * Adds Sk4f_load4 and Sk4f_store4 to SkNx > * Make use of new xform in SkGr.cpp > > BUG=skia: > GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2339233003 > CQ_INCLUDE_TRYBOTS=master.client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot > > Committed: https://skia.googlesource.com/skia/+/43d6651111374b5d1e4ddd9030dcf079b448ec47 TBR=brianosman@google.com,mtklein@google.com,scroggo@google.com,mtklein@chromium.org,bsalomon@google.com # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia: Review-Url: https://codereview.chromium.org/2347473007
Diffstat (limited to 'src/core/SkNx.h')
-rw-r--r--src/core/SkNx.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/core/SkNx.h b/src/core/SkNx.h
index 6bca856d8b..881a475ce0 100644
--- a/src/core/SkNx.h
+++ b/src/core/SkNx.h
@@ -332,28 +332,6 @@ SI void Sk4h_store4(void* dst, const Sk4h& r, const Sk4h& g, const Sk4h& b, cons
Sk4h(r[3], g[3], b[3], a[3]).store(dst64 + 3);
}
-// Load 4 Sk4f and transpose them (512 bits total).
-SI void Sk4f_load4(const void* vptr, Sk4f* r, Sk4f* g, Sk4f* b, Sk4f* a) {
- const float* ptr = (const float*) vptr;
- auto p0 = Sk4f::Load(ptr + 0),
- p1 = Sk4f::Load(ptr + 4),
- p2 = Sk4f::Load(ptr + 8),
- p3 = Sk4f::Load(ptr + 12);
- *r = { p0[0], p1[0], p2[0], p3[0] };
- *g = { p0[1], p1[1], p2[1], p3[1] };
- *b = { p0[2], p1[2], p2[2], p3[2] };
- *a = { p0[3], p1[3], p2[3], p3[3] };
-}
-
-// Transpose 4 Sk4f and store (512 bits total).
-SI void Sk4f_store4(void* vdst, const Sk4f& r, const Sk4f& g, const Sk4f& b, const Sk4f& a) {
- float* dst = (float*) vdst;
- Sk4f(r[0], g[0], b[0], a[0]).store(dst + 0);
- Sk4f(r[1], g[1], b[1], a[1]).store(dst + 4);
- Sk4f(r[2], g[2], b[2], a[2]).store(dst + 8);
- Sk4f(r[3], g[3], b[3], a[3]).store(dst + 12);
-}
-
#endif
SI void Sk4f_ToBytes(uint8_t p[16], const Sk4f& a, const Sk4f& b, const Sk4f& c, const Sk4f& d) {