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

Issue 755573002: Cleanup with SkAlphaMulQ_SSE2() (Closed)

Created:
6 years ago by qiankun
Modified:
6 years ago
Reviewers:
mtklein, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Cleanup with SkAlphaMulQ_SSE2() Related nanobench results: before: 10M 18 7.03µs 7.31µs 7.38µs 8.46µs 6% ▂▁▂▂▂▃▄▁█▁ 8888 bitmaprect_80_filter_identity 10M 43 6.96µs 6.97µs 6.99µs 7.19µs 1% ▁▂▁▁▁▁▁█▁▁ 8888 bitmaprect_80_nofilter_identity 10M 14 35.7µs 35.8µs 35.9µs 36.3µs 1% ▃▂▁▂▁█▂▁▁▁ 8888 bitmap_BGRA_8888_update_scale_bilerp 10M 16 35.5µs 35.6µs 35.7µs 36.3µs 1% █▅▂▁▁▁▃▂▁▁ 8888 bitmap_BGRA_8888_update_volatile_scale_bilerp 10M 16 35.4µs 35.4µs 35.5µs 36.8µs 1% ▂▁█▁▁▁▁▂▁▁ 8888 bitmap_BGRA_8888_scale_bilerp 10M 25 16.4µs 16.6µs 16.7µs 17.4µs 2% ▂▁▁▂▁▁▁▅▅█ 8888 bitmap_Index_8 10M 15 37.9µs 38µs 38µs 38.4µs 0% ▄▆▂▁▁▁█▂▁▁ 8888 bitmap_RGB_565 10M 33 11.1µs 11.1µs 11.1µs 11.2µs 0% ▆▂█▂▂▂▁▁▂▁ 8888 bitmap_BGRA_8888_scale after: 10M 9 7.04µs 7.06µs 7.1µs 7.32µs 1% █▅▂▁▁▂▁▁▁▁ 8888 bitmaprect_80_filter_identity 10M 18 7.01µs 7.02µs 7.05µs 7.25µs 1% █▂▁▁▁▁▁▁▁▁ 8888 bitmaprect_80_nofilter_identity 10M 5 33.9µs 34µs 34.1µs 34.5µs 1% █▃▂▂▁▁▁▅▃▂ 8888 bitmap_BGRA_8888_update_scale_bilerp 10M 7 35.5µs 35.5µs 35.6µs 36.3µs 1% ▃▂▂▁▂▁▂▁█▂ 8888 bitmap_BGRA_8888_update_volatile_scale_bilerp 10M 7 35.5µs 35.5µs 35.7µs 36.8µs 1% ▂▁▁▁▁▁▁▁▁█ 8888 bitmap_BGRA_8888_scale_bilerp 10M 11 16.4µs 16.4µs 16.4µs 16.6µs 0% █▂▁▁▂▁▁▁▂▁ 8888 bitmap_Index_8 10M 7 37.3µs 37.4µs 38.4µs 47.8µs 9% ▁▁▁▁▁▁▁▁▁█ 8888 bitmap_RGB_565 10M 33 11µs 11µs 11.1µs 11.2µs 1% ▄█▅▃▂▁▁▁▁▁ 8888 bitmap_BGRA_8888_scale BUG=skia: Committed: https://skia.googlesource.com/skia/+/533a32782f9817bb307484b36323040470575da4

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix performance regression #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -73 lines) Patch
M src/opts/SkBlitRow_opts_SSE2.cpp View 2 chunks +3 lines, -68 lines 0 comments Download
M src/opts/SkColor_opts_SSE2.h View 1 1 chunk +23 lines, -5 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
qiankun
PTAL
6 years ago (2014-11-24 06:50:43 UTC) #2
reed1
can you add nanobench results for the relevant tests before/after this CL?
6 years ago (2014-11-24 14:28:54 UTC) #4
qiankun
Thanks for review. I updated the nanobench data.
6 years ago (2014-11-24 15:32:28 UTC) #5
reed1
bitmaprect_80_nofilter_identity is probably the key bench to track. It uses the function in question (S32_Blend_BlitRow32_SSE2 ...
6 years ago (2014-11-24 16:18:52 UTC) #6
mtklein
https://codereview.chromium.org/755573002/diff/1/src/opts/SkBlitRow_opts_SSE2.cpp File src/opts/SkBlitRow_opts_SSE2.cpp (left): https://codereview.chromium.org/755573002/diff/1/src/opts/SkBlitRow_opts_SSE2.cpp#oldcode70 src/opts/SkBlitRow_opts_SSE2.cpp:70: __m128i src_ag = _mm_and_si128(ag_mask, src_pixel); So, it seems like ...
6 years ago (2014-11-24 16:48:23 UTC) #7
qiankun
Hi reviewers, thanks very much for your comments and advise. The performance regression is fixed. ...
6 years ago (2014-11-25 05:33:52 UTC) #8
mtklein
lgtm
6 years ago (2014-11-25 13:48:31 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/755573002/20001
6 years ago (2014-11-25 13:48:58 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://skia.googlesource.com/skia/+/533a32782f9817bb307484b36323040470575da4
6 years ago (2014-11-25 13:59:42 UTC) #13
Tom Hudson
In practice, this seems to have improved the _scale_ tests a little, but reed@ expected ...
6 years ago (2014-11-25 14:21:49 UTC) #14
qiankun
On 2014/11/25 14:21:49, Tom Hudson wrote: > In practice, this seems to have improved the ...
6 years ago (2014-11-25 14:47:36 UTC) #15
mtklein
It's important to remember that we do not care what the bots say about microbenchmarks. ...
6 years ago (2014-11-25 15:00:11 UTC) #16
reed1
On 2014/11/25 14:47:36, qiankun wrote: > On 2014/11/25 14:21:49, Tom Hudson wrote: > > In ...
6 years ago (2014-11-25 15:01:09 UTC) #17
mtklein
6 years ago (2014-11-25 15:04:29 UTC) #18
Message was sent while issue was closed.
> I agree that the CL simplifies the code, which is good. The timings that were
> posted show a slight slowdown, but I presume we think that was just noise?

Yes, the latest updated times in the description are neutral.

Powered by Google App Engine
This is Rietveld 408576698