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

Issue 1320673014: Port SkMatrix opts to SkOpts. (Closed)

Created:
5 years, 3 months ago by mtklein_C
Modified:
5 years, 3 months ago
Reviewers:
mtklein, reed1
CC:
reviews_skia.org, joshua.litt
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Port SkMatrix opts to SkOpts. No changes to the code, just moved around. This will have the effect of enabling vectorized code on ARMv7. Should be no effect on ARMv8 or x86, which would have been vectorized already. nanobench --match mappoints changes on Nexus 5 (ARMv7): _affine: 132 -> 95 _scale: 118 -> 47 _trans: 60 -> 37 A teaser: We should next look at the ABCD->BADC shuffle we've noted that we need in _affine. A quick hack showed doing that optimally is another ~35% speedup on x86. Got to figure out how to do it best on ARM though: that same quick hack was a 2x slowdown there. Good reason to resurrect that SkNx_shuffle() CL! (I believe the answers are vrev64q_f32(v) and _mm_shuffle_ps(v,v, _MM_SHUFFLE(2,3,0,1), but we should probably find out in another CL.) BUG=skia:4117 Committed: https://skia.googlesource.com/skia/+/4e8a09d3672702704436112f3aa5611bd79b2690

Patch Set 1 #

Patch Set 2 : revert a bit #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -85 lines) Patch
M src/core/SkMatrix.cpp View 1 4 chunks +7 lines, -85 lines 0 comments Download
M src/core/SkOpts.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M src/core/SkOpts.cpp View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
A src/opts/SkMatrix_opts.h View 1 chunk +106 lines, -0 lines 0 comments Download
M src/opts/SkOpts_neon.cpp View 1 2 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1320673014/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1320673014/20001
5 years, 3 months ago (2015-09-10 00:13:37 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-10 00:18:16 UTC) #4
mtklein_C
5 years, 3 months ago (2015-09-10 00:39:22 UTC) #7
reed1
in the neon case (I guess), does this mean we jump to the C function, ...
5 years, 3 months ago (2015-09-10 16:51:19 UTC) #8
mtklein
On 2015/09/10 16:51:19, reed1 wrote: > in the neon case (I guess), does this mean ...
5 years, 3 months ago (2015-09-10 17:36:30 UTC) #9
mtklein
On 2015/09/10 17:36:30, mtklein wrote: > On 2015/09/10 16:51:19, reed1 wrote: > > in the ...
5 years, 3 months ago (2015-09-10 18:05:36 UTC) #10
reed1
I'm fine if you still want to land this as is, and consider a different ...
5 years, 3 months ago (2015-09-10 18:07:25 UTC) #11
mtklein
On 2015/09/10 18:07:25, reed1 wrote: > I'm fine if you still want to land this ...
5 years, 3 months ago (2015-09-10 18:11:27 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1320673014/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1320673014/60001
5 years, 3 months ago (2015-09-10 18:12:17 UTC) #16
commit-bot: I haz the power
5 years, 3 months ago (2015-09-10 18:18:34 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://skia.googlesource.com/skia/+/4e8a09d3672702704436112f3aa5611bd79b2690

Powered by Google App Engine
This is Rietveld 408576698