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

Issue 1890923003: Several fixes for fp 16 rendering: (Closed)

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

Description

Several fixes for fp 16 rendering: With the GPU backend, allow F16 render targets to be created (along with any other renderable format). We were previously just falling back to 8888. In SampleApp, if the window configuration is F16, don't render directly to the primary surface (which is actually sRGB 8888). Intead, make an off-screen F16 surface, then blit it back to the framebuffer when we're done. In DM, clamp values outside of [0,1]. These were wrapping, producing very incorrect images. (Many filters can trigger out-of-range values due to ringing). BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1890923003 Committed: https://skia.googlesource.com/skia/+/6b08652abff788a251db82ca2b5f6b359ffe2590

Patch Set 1 #

Patch Set 2 : Support F16 MSAA in SampleApp #

Total comments: 2

Patch Set 3 : Nicer looking clamp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -6 lines) Patch
M dm/DM.cpp View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M samplecode/SampleApp.cpp View 1 2 chunks +18 lines, -1 line 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 chunk +8 lines, -4 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1890923003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1890923003/20001
4 years, 8 months ago (2016-04-14 18:25:50 UTC) #3
Brian Osman
4 years, 8 months ago (2016-04-14 18:26:06 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-14 18:43:23 UTC) #7
mtklein
lgtm
4 years, 8 months ago (2016-04-14 19:11:48 UTC) #8
mtklein
https://codereview.chromium.org/1890923003/diff/20001/dm/DM.cpp File dm/DM.cpp (left): https://codereview.chromium.org/1890923003/diff/20001/dm/DM.cpp#oldcode962 dm/DM.cpp:962: Sk4f fs = SkHalfToFloat_01(px[i]); // Convert up to linear ...
4 years, 8 months ago (2016-04-14 19:20:13 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1890923003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1890923003/40001
4 years, 8 months ago (2016-04-14 19:25:12 UTC) #12
commit-bot: I haz the power
4 years, 8 months ago (2016-04-14 19:39:03 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/6b08652abff788a251db82ca2b5f6b359ffe2590

Powered by Google App Engine
This is Rietveld 408576698