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

Issue 2138073002: Clean up hyper-local SkCpu feature test experiment. (Closed)

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

Description

Clean up hyper-local SkCpu feature test experiment. This removes the code paths where we make SkCpu::Supports() calls from within a tight loop. It keeps code paths using SkCpu::Supports() to choose entire routines from src/opts/. We can't rely on these hyper-local checks to be hoisted up reliably enough. It worked pretty well with the first couple platforms we tried (e.g. Clang on Linux/Mac) but we can't gaurantee it works everywhere. Further, I'm not able to actually do anything fancy with those tests outside of x86... I've not found a way to get, say, NEON+F16 conversion code embedded into ordinary NEON code outside writing then entire function in external assembly. This whole idea becomes less important now that we've got a way to chain separate function calls together efficiently. We can now, e.g., use an AVX+F16C method to load some pixels, then chain that into an ordinary AVX method to color filter them. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2138073002 CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot Committed: https://skia.googlesource.com/skia/+/5608e2ed2299496eee3c57e0fe426ae9bd0d07a4

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -64 lines) Patch
M src/core/SkCpu.h View 1 chunk +1 line, -5 lines 0 comments Download
M src/core/SkCpu.cpp View 2 chunks +5 lines, -14 lines 0 comments Download
M src/core/SkHalf.h View 2 chunks +0 lines, -30 lines 0 comments Download
M src/core/SkXfermodeF16.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M src/opts/SkNx_sse.h View 4 chunks +7 lines, -13 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
commit-bot: I haz the power
There were warnings when CQ was processing your CL: * CQ_EXTRA_TRYBOTS flag is deprecated and ...
4 years, 5 months ago (2016-07-11 15:41:00 UTC) #4
mtklein_C
4 years, 5 months ago (2016-07-11 16:49:46 UTC) #8
herb_g
lgtm
4 years, 5 months ago (2016-07-11 16:56:45 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2138073002/1
4 years, 5 months ago (2016-07-11 16:58:27 UTC) #11
commit-bot: I haz the power
There were warnings when CQ was processing your CL: * CQ_EXTRA_TRYBOTS flag is deprecated and ...
4 years, 5 months ago (2016-07-11 16:58:28 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://skia.googlesource.com/skia/+/5608e2ed2299496eee3c57e0fe426ae9bd0d07a4
4 years, 5 months ago (2016-07-11 16:59:24 UTC) #14
reed1
4 years, 5 months ago (2016-07-11 19:00:44 UTC) #15
Message was sent while issue was closed.
all for want of a global initialization routine...

lgtm

Powered by Google App Engine
This is Rietveld 408576698