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

Issue 2081933005: Do loads and math in parallel in SkColorXform_opts (Closed)

Created:
4 years, 6 months ago by msarett
Modified:
4 years, 6 months ago
Reviewers:
mtklein
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Do loads and math in parallel in SkColorXform_opts Note that baselines have changed a little since I recently started using clang. 201295.jpg on HP z620 (300x280) Skia Xform sRGB Dst Before 0.378 ms Skia Xform sRGB Dst After 0.322 ms 1.17x Skia Xform 2.2 Dst Before 0.428 ms Skia Xform 2.2 Dst After 0.395 ms 1.08x QCMS Xform 0.418 ms sRGB Dst vs QCMS 1.30x 2.2 Dst vs QCMS 1.06x -------------------------------------------- Nexus 6P: Skia Xform sRGB Dst Before 1.58 ms Skia Xform sRGB Dst After 1.43 ms Skia Xform 2.2 Dst Before 2.69 ms Skia Xform 2.2 Dst After 2.62 ms Dell Venue 8: Skia Xform sRGB Dst Before 2.78 ms Skia Xform sRGB Dst After 2.74 ms Skia Xform 2.2 Dst Before 3.73 ms Skia Xform 2.2 Dst After 3.64 ms BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2081933005 CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot Committed: https://skia.googlesource.com/skia/+/9bba21530d7566494533788f4934848ea9318080

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use lambda fns to share code #

Total comments: 2

Patch Set 3 : Fuse gamma_transform and store #

Patch Set 4 : Fix bug when length < 4 #

Total comments: 2

Patch Set 5 : Don't close over rgba #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -39 lines) Patch
M src/opts/SkColorXform_opts.h View 1 2 3 4 1 chunk +52 lines, -39 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 34 (16 generated)
msarett
4 years, 6 months ago (2016-06-22 14:17:11 UTC) #5
mtklein
Three thoughts: - Generally suspicious of that these sorts of optimizations are very architecture and ...
4 years, 6 months ago (2016-06-22 14:46:54 UTC) #6
msarett
> - Generally suspicious that this is something the compiler ought to be able to ...
4 years, 6 months ago (2016-06-22 15:24:06 UTC) #7
mtklein
Oh, I was confused. Of course this is correct when src and dst are the ...
4 years, 6 months ago (2016-06-22 15:25:30 UTC) #8
msarett
> - Generally suspicious of that these sorts of optimizations are very > architecture and ...
4 years, 6 months ago (2016-06-22 18:34:56 UTC) #11
mtklein
https://codereview.chromium.org/2081933005/diff/10001/src/opts/SkColorXform_opts.h File src/opts/SkColorXform_opts.h (right): https://codereview.chromium.org/2081933005/diff/10001/src/opts/SkColorXform_opts.h#newcode246 src/opts/SkColorXform_opts.h:246: gamma_transform_4(); Why not fuse gamma_transform_4() into store_4()? They're always ...
4 years, 6 months ago (2016-06-22 19:33:34 UTC) #12
msarett
https://codereview.chromium.org/2081933005/diff/10001/src/opts/SkColorXform_opts.h File src/opts/SkColorXform_opts.h (right): https://codereview.chromium.org/2081933005/diff/10001/src/opts/SkColorXform_opts.h#newcode246 src/opts/SkColorXform_opts.h:246: gamma_transform_4(); On 2016/06/22 19:33:34, mtklein wrote: > Why not ...
4 years, 6 months ago (2016-06-22 19:44:43 UTC) #13
mtklein
lgtm
4 years, 6 months ago (2016-06-22 20:08:57 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2081933005/30001
4 years, 6 months ago (2016-06-22 20:11:40 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot/builds/242)
4 years, 6 months ago (2016-06-22 20:23:15 UTC) #18
msarett
Please take another look! I've refactored to fix a bug that occurs when length < ...
4 years, 6 months ago (2016-06-22 20:55:52 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2081933005/70001
4 years, 6 months ago (2016-06-22 21:27:33 UTC) #23
mtklein
lgtm https://codereview.chromium.org/2081933005/diff/70001/src/opts/SkColorXform_opts.h File src/opts/SkColorXform_opts.h (right): https://codereview.chromium.org/2081933005/diff/70001/src/opts/SkColorXform_opts.h#newcode220 src/opts/SkColorXform_opts.h:220: Sk4i rgba; I think we can move rgba ...
4 years, 6 months ago (2016-06-22 21:29:29 UTC) #24
msarett
https://codereview.chromium.org/2081933005/diff/70001/src/opts/SkColorXform_opts.h File src/opts/SkColorXform_opts.h (right): https://codereview.chromium.org/2081933005/diff/70001/src/opts/SkColorXform_opts.h#newcode220 src/opts/SkColorXform_opts.h:220: Sk4i rgba; On 2016/06/22 21:29:29, mtklein wrote: > I ...
4 years, 6 months ago (2016-06-22 21:34:22 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2081933005/90001
4 years, 6 months ago (2016-06-22 21:34:47 UTC) #27
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-22 21:52:18 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2081933005/90001
4 years, 6 months ago (2016-06-22 21:54:37 UTC) #32
commit-bot: I haz the power
4 years, 6 months ago (2016-06-22 21:55:55 UTC) #34
Message was sent while issue was closed.
Committed patchset #5 (id:90001) as
https://skia.googlesource.com/skia/+/9bba21530d7566494533788f4934848ea9318080

Powered by Google App Engine
This is Rietveld 408576698