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

Issue 1700473003: NEON f32 <-> f16 and f32 <-> u16 (Closed)

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

Description

NEON f32 <-> f16 and f32 <-> u16 Adds f32 <-> f16 ARMv7 and ARMv8 NEON code. Also adds NEON f32 <-> u16 code to make the comparison fair. The NDK GCC does not support the ARMv8 NEON intrinsics needed to go fastest, so we use a tiny amount of inline assembly. The ARMv7 half -> float is different enough from the SSE version that it does not make sense to use SkNx. Still TODO: ARMv7 float -> half. Naively translating the SSE version results in 0x0000 where we'd expect a denormal output. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1700473003 CQ_EXTRA_TRYBOTS=client.skia.android:Test-Android-GCC-Nexus5-CPU-NEON-Arm7-Release-Trybot,Test-Android-GCC-Nexus9-CPU-Denver-Arm64-Release-Trybot;client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot Committed: https://skia.googlesource.com/skia/+/be8c19e8d3deac9b9585c44b9a423912dd00a75a

Patch Set 1 #

Patch Set 2 : ARMv7 support too #

Patch Set 3 : fixes #

Patch Set 4 : q #

Patch Set 5 : tweak #

Patch Set 6 : f32 <-> u16 #

Patch Set 7 : back off from ARMv7 #

Patch Set 8 : armv8 asm #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -14 lines) Patch
M src/core/SkHalf.h View 1 2 3 4 5 6 7 2 chunks +42 lines, -14 lines 6 comments Download
M src/opts/SkNx_neon.h View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 76 (52 generated)
mtklein_C
4 years, 10 months ago (2016-02-12 22:52:38 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1700473003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1700473003/1
4 years, 10 months ago (2016-02-12 22:52:44 UTC) #9
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
4 years, 10 months ago (2016-02-12 22:52:44 UTC) #10
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Please ask for an LGTM from a full ...
4 years, 10 months ago (2016-02-13 04:52:00 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1700473003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1700473003/100001
4 years, 10 months ago (2016-02-14 18:04:49 UTC) #35
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-14 18:27:12 UTC) #37
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1700473003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1700473003/100001
4 years, 10 months ago (2016-02-14 21:29:53 UTC) #41
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Android-GCC-Nexus5-CPU-NEON-Arm7-Release-Trybot on client.skia.android (JOB_FAILED, http://build.chromium.org/p/client.skia.android/builders/Test-Android-GCC-Nexus5-CPU-NEON-Arm7-Release-Trybot/builds/49)
4 years, 10 months ago (2016-02-14 22:26:39 UTC) #43
reed1
lgtm
4 years, 10 months ago (2016-02-15 21:34:13 UTC) #44
reed1
4 years, 10 months ago (2016-02-15 21:34:54 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1700473003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1700473003/120001
4 years, 10 months ago (2016-02-17 17:01:56 UTC) #50
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1700473003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1700473003/140001
4 years, 10 months ago (2016-02-17 18:26:08 UTC) #54
mtklein
This is probably a good time to take a(nother) look. I've changed two things: 1) ...
4 years, 10 months ago (2016-02-17 18:44:11 UTC) #57
msarett
I realize I've partially reviewed code that was already there :). https://codereview.chromium.org/1700473003/diff/140001/src/core/SkHalf.h File src/core/SkHalf.h (right): ...
4 years, 10 months ago (2016-02-17 19:46:38 UTC) #58
mtklein
https://codereview.chromium.org/1700473003/diff/140001/src/core/SkHalf.h File src/core/SkHalf.h (right): https://codereview.chromium.org/1700473003/diff/140001/src/core/SkHalf.h#newcode55 src/core/SkHalf.h:55: norm = vreinterpretq_f32_u32(vaddq_u32(vshlq_n_u32(h, 13), On 2016/02/17 19:46:38, msarett wrote: ...
4 years, 10 months ago (2016-02-17 19:52:40 UTC) #59
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Android-GCC-Nexus5-CPU-NEON-Arm7-Release-Trybot on client.skia.android (JOB_FAILED, http://build.chromium.org/p/client.skia.android/builders/Test-Android-GCC-Nexus5-CPU-NEON-Arm7-Release-Trybot/builds/51)
4 years, 10 months ago (2016-02-17 20:09:00 UTC) #61
mtklein
On 2016/02/17 20:09:00, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
4 years, 10 months ago (2016-02-17 20:28:22 UTC) #62
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1700473003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1700473003/140001
4 years, 10 months ago (2016-02-17 20:28:42 UTC) #64
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-17 22:36:13 UTC) #66
mtklein
Gonna get this baking... happy to follow up / evolve it.
4 years, 10 months ago (2016-02-19 14:19:52 UTC) #67
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1700473003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1700473003/140001
4 years, 10 months ago (2016-02-19 14:20:12 UTC) #70
commit-bot: I haz the power
Try jobs failed on following builders: Test-Android-GCC-Nexus5-CPU-NEON-Arm7-Release-Trybot on client.skia.android (JOB_TIMED_OUT, no build URL)
4 years, 10 months ago (2016-02-19 16:20:44 UTC) #72
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1700473003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1700473003/140001
4 years, 10 months ago (2016-02-19 16:41:21 UTC) #74
commit-bot: I haz the power
4 years, 10 months ago (2016-02-19 17:40:28 UTC) #76
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://skia.googlesource.com/skia/+/be8c19e8d3deac9b9585c44b9a423912dd00a75a

Powered by Google App Engine
This is Rietveld 408576698