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

Issue 2648043002: Create FP16 LUTs when needed (Closed)

Created:
3 years, 11 months ago by hubbe
Modified:
3 years, 10 months ago
Reviewers:
ccameron
CC:
chromium-reviews, cc-bugs_chromium.org, enne (OOO), Zhenyao Mo
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Create FP16 LUTs when needed When maping HDR data to scRGB, the output can be outside of 0-1. Using half-floats neatly solves this problem. Also, we need the LUTs to be a bit larger in this case. BUG=682416 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2648043002 Cr-Commit-Position: refs/heads/master@{#446766} Committed: https://chromium.googlesource.com/chromium/src/+/b97f42dae25f0481f687e442b79cb3c774391b5d

Patch Set 1 #

Total comments: 4

Patch Set 2 : upload floats, let gl convert #

Total comments: 4

Patch Set 3 : use GLenum #

Patch Set 4 : moved half-float conversion #

Total comments: 4

Patch Set 5 : mark all floats as floats (not doubles) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -36 lines) Patch
M cc/output/color_lut_cache.h View 2 3 1 chunk +14 lines, -9 lines 0 comments Download
M cc/output/color_lut_cache.cc View 1 2 3 6 chunks +52 lines, -21 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 2 chunks +8 lines, -6 lines 0 comments Download
M ui/gfx/BUILD.gn View 1 2 3 4 3 chunks +17 lines, -0 lines 0 comments Download
A ui/gfx/half_float.h View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download
A ui/gfx/half_float.cc View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download
A ui/gfx/half_float_unittest.cc View 1 2 3 4 1 chunk +88 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (23 generated)
hubbe
3 years, 11 months ago (2017-01-20 23:33:31 UTC) #5
ccameron
Creating 16-bit floating point textures doesn't require conversion CPU-side. PTAL at the suggested change. With ...
3 years, 11 months ago (2017-01-21 01:10:49 UTC) #8
chromium-reviews
On Fri, Jan 20, 2017 at 5:10 PM, <ccameron@chromium.org> wrote: > Creating 16-bit floating point ...
3 years, 11 months ago (2017-01-21 08:44:30 UTC) #9
ccameron
WRT analytic implementation... No problem. Actually I'm working to add analytic representations to the shaders ...
3 years, 11 months ago (2017-01-21 19:49:20 UTC) #10
hubbe
https://codereview.chromium.org/2648043002/diff/1/cc/output/color_lut_cache.cc File cc/output/color_lut_cache.cc (right): https://codereview.chromium.org/2648043002/diff/1/cc/output/color_lut_cache.cc#newcode40 cc/output/color_lut_cache.cc:40: unsigned short baseTable[512] = { On 2017/01/21 19:49:20, ccameron ...
3 years, 11 months ago (2017-01-22 05:12:39 UTC) #13
ccameron
lgtm % nit + suggestion https://codereview.chromium.org/2648043002/diff/20001/cc/output/color_lut_cache.cc File cc/output/color_lut_cache.cc (right): https://codereview.chromium.org/2648043002/diff/20001/cc/output/color_lut_cache.cc#newcode41 cc/output/color_lut_cache.cc:41: int data_type) { Small ...
3 years, 11 months ago (2017-01-23 18:30:26 UTC) #16
hubbe
On 2017/01/23 18:30:26, ccameron wrote: > lgtm % nit + suggestion > > https://codereview.chromium.org/2648043002/diff/20001/cc/output/color_lut_cache.cc > ...
3 years, 11 months ago (2017-01-23 18:44:57 UTC) #17
ccameron
On 2017/01/23 18:44:57, hubbe wrote: > On 2017/01/23 18:30:26, ccameron wrote: > > lgtm % ...
3 years, 11 months ago (2017-01-23 20:45:00 UTC) #19
ccameron
On 2017/01/23 20:45:00, ccameron wrote: > On 2017/01/23 18:44:57, hubbe wrote: > > On 2017/01/23 ...
3 years, 11 months ago (2017-01-23 20:49:48 UTC) #20
chromium-reviews
The "elsewhere" might be libyuv. We already have a function which converts int16s to half-floats ...
3 years, 11 months ago (2017-01-23 20:56:40 UTC) #21
ccameron
On 2017/01/23 20:56:40, chromium-reviews wrote: > The "elsewhere" might be libyuv. > We already have ...
3 years, 11 months ago (2017-01-23 21:02:31 UTC) #22
chromium-reviews
On Mon, Jan 23, 2017 at 1:02 PM, <ccameron@chromium.org> wrote: > On 2017/01/23 20:56:40, chromium-reviews ...
3 years, 11 months ago (2017-01-23 21:29:32 UTC) #23
chromium-reviews
Oh, and I forgot: What's wrong with using a template? /Hubbe On Mon, Jan 23, ...
3 years, 11 months ago (2017-01-23 21:30:30 UTC) #24
chromium-reviews
It's too bad skia doesn't expose it's half-float functions, they look nice :( /Hubbe On ...
3 years, 11 months ago (2017-01-23 21:37:56 UTC) #25
hubbe
Broke out half-float conversion into it's own file. I know you didn't like the templetizing ...
3 years, 11 months ago (2017-01-24 18:32:17 UTC) #26
ccameron
lgtm, thanks It would be great to merge https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp?rcl=0&l=259 to use ui/gfx as well, but ...
3 years, 11 months ago (2017-01-24 18:38:49 UTC) #27
hubbe
https://codereview.chromium.org/2648043002/diff/60001/cc/output/color_lut_cache.cc File cc/output/color_lut_cache.cc (right): https://codereview.chromium.org/2648043002/diff/60001/cc/output/color_lut_cache.cc#newcode71 cc/output/color_lut_cache.cc:71: FloatToLUT(&one, &alpha, 1); On 2017/01/24 18:38:49, ccameron wrote: > ...
3 years, 11 months ago (2017-01-24 18:47:46 UTC) #28
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/2648043002/60001
3 years, 11 months ago (2017-01-24 18:48:47 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/354117)
3 years, 11 months ago (2017-01-24 19:44:08 UTC) #32
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/2648043002/80001
3 years, 10 months ago (2017-01-27 20:52:36 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/352428)
3 years, 10 months ago (2017-01-27 20:56:16 UTC) #41
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/2648043002/80001
3 years, 10 months ago (2017-01-27 20:58:02 UTC) #43
commit-bot: I haz the power
3 years, 10 months ago (2017-01-27 21:05:23 UTC) #46
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/b97f42dae25f0481f687e442b79c...

Powered by Google App Engine
This is Rietveld 408576698