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

Issue 350343002: ARM Skia NEON patches - 41 - arm64: SkXfermode::xfer32 (Closed)

Created:
6 years, 6 months ago by kevin.petit
Modified:
6 years ago
CC:
reviews_skia.org, Ben Murdoch
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

ARM Skia NEON patches - 41 - arm64: SkXfermode::xfer32 Currently the NEON code for Xfermodes performs well on arm64 targets except for dstout and dstin which are significantly slower than the C code. This patch fixes this and gives further improvements on other modes. Here are some perf results: +------------+------------+------------+ | mode | Cortex-A53 | Cortex-A57 | +------------+------------+------------+ | multiply | +24.58% | +23.71% | +------------+------------+------------+ | exclusion | +22.72% | +22.05% | +------------+------------+------------+ | difference | +34.67% | +36.82% | +------------+------------+------------+ | hardlight | +17.07% | +14.74% | +------------+------------+------------+ | lighten | +38.21% | +32.87% | +------------+------------+------------+ | darken | +37.59% | +32.99% | +------------+------------+------------+ | overlay | +17.36% | +16.88% | +------------+------------+------------+ | screen | +52.56% | +54.43% | +------------+------------+------------+ | modulate | +62.85% | +61.32% | +------------+------------+------------+ | plus | +91.52% | +117.41% | +------------+------------+------------+ | xor | +42.86% | +43.38% | +------------+------------+------------+ | dstatop | +48.46% | +48.99% | +------------+------------+------------+ | srcatop | +50.50% | +48.51% | +------------+------------+------------+ | dstout | +67.83% | +78.09% | +------------+------------+------------+ | srcout | +69.02% | +78.26% | +------------+------------+------------+ | dstin | +70.92% | +79.24% | +------------+------------+------------+ | srcin | +68.90% | +78.23% | +------------+------------+------------+ | dstover | +73.80% | +68.10% | +------------+------------+------------+ Signed-off-by: Kévin PETIT <kevin.petit@arm.com>; BUG=skia Committed: https://skia.googlesource.com/skia/+/4dc94d9dfc62ea22649952fbaa1fdb95bab61d7a

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add a comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -12 lines) Patch
M src/opts/SkXfermode_opts_arm_neon.cpp View 1 3 chunks +35 lines, -12 lines 0 comments Download

Messages

Total messages: 12 (1 generated)
kevin.petit
6 years, 6 months ago (2014-06-25 09:12:21 UTC) #1
kevin.petit
ping.
6 years, 5 months ago (2014-06-30 13:12:13 UTC) #2
mtklein
https://codereview.chromium.org/350343002/diff/1/src/opts/SkXfermode_opts_arm_neon.cpp File src/opts/SkXfermode_opts_arm_neon.cpp (right): https://codereview.chromium.org/350343002/diff/1/src/opts/SkXfermode_opts_arm_neon.cpp#newcode807 src/opts/SkXfermode_opts_arm_neon.cpp:807: asm volatile ( Can you take me through this ...
6 years, 5 months ago (2014-06-30 13:28:03 UTC) #3
kevin.petit
https://codereview.chromium.org/350343002/diff/1/src/opts/SkXfermode_opts_arm_neon.cpp File src/opts/SkXfermode_opts_arm_neon.cpp (right): https://codereview.chromium.org/350343002/diff/1/src/opts/SkXfermode_opts_arm_neon.cpp#newcode807 src/opts/SkXfermode_opts_arm_neon.cpp:807: asm volatile ( On 2014/06/30 13:28:03, mtklein wrote: > ...
6 years, 5 months ago (2014-06-30 13:38:05 UTC) #4
mtklein
lgtm Do you figure the indirection through the proc pointer is also hurting us here? ...
6 years, 5 months ago (2014-06-30 13:44:35 UTC) #5
kevin.petit
>Do you figure the indirection through the proc pointer is also hurting us here? I ...
6 years, 5 months ago (2014-06-30 14:04:40 UTC) #6
kevin.petit
The CQ bit was checked by kevin.petit@arm.com
6 years, 5 months ago (2014-06-30 14:05:15 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/kevin.petit@arm.com/350343002/20001
6 years, 5 months ago (2014-06-30 14:05:48 UTC) #8
commit-bot: I haz the power
Change committed as 4dc94d9dfc62ea22649952fbaa1fdb95bab61d7a
6 years, 5 months ago (2014-06-30 14:32:26 UTC) #9
Tom Hudson
ARM: can you revisit? This CL has been implicated in a series of crashes on ...
6 years ago (2014-12-02 16:24:27 UTC) #11
kevin.petit
6 years ago (2014-12-02 17:16:24 UTC) #12
Message was sent while issue was closed.
Hi Tom,

On 2014/12/02 16:24:27, Tom Hudson wrote:
> ARM: can you revisit?

Sure, I'll have a look.

> This CL has been implicated in a series of crashes on the new Nexus 9 and so
is
> in danger of being reverted for Android.

I'd rather avoid that :-).

> Ben Murdoch in our London office has a reproduction case (cc'd).

Ben, could you send me the reproducer please?

Regards,
Kévin

Powered by Google App Engine
This is Rietveld 408576698