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

Issue 2318313004: emulate srgb format for generateMipmap (Closed)

Created:
4 years, 3 months ago by yizhou.jiang
Modified:
4 years ago
CC:
chromium-reviews, piman+watch_chromium.org, Yang Gu
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

emulate srgb format for generateMipmap First, do sampling for a srgb texture, converting it to a linear texture. Then generateMipmap in rgb format, and do another sampling to convert rgb texture to srgb one. BUG=634519 TEST=conformance2/textures/misc/tex-srgb-mipmap.html CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/da573a8ab571bb73d3539a66abbe5c2efd47d7b7 Cr-Commit-Position: refs/heads/master@{#424377}

Patch Set 1 #

Patch Set 2 : srgb-generateMipmap #

Patch Set 3 : srgb-generateMipmap #

Patch Set 4 : srgb-generateMipmap #

Total comments: 5

Patch Set 5 : srgb-generateMipmap #

Patch Set 6 : srgb-generateMipmap #

Total comments: 40

Patch Set 7 : srgb-generateMipmap #

Total comments: 4

Patch Set 8 : addressed yunchao and qiankun's feedbacks #

Patch Set 9 : addressed yunchao's feedback:update webgl2_conformance_expectation.py #

Total comments: 21

Patch Set 10 : addressed piman and kbr's feedbacks (edit) #

Total comments: 9

Patch Set 11 : addressed piman's feedback #

Total comments: 6

Patch Set 12 : addressed piman's feedback #

Total comments: 7

Patch Set 13 : addressed piman, qiankun and yunchao's feedbacks #

Patch Set 14 : addressed piman's feedback #

Patch Set 15 : trybots issue: getLevelType #

Patch Set 16 : rm feature->info #

Patch Set 17 : Test trybot issue: Applying Julien's patch 2379153002 #

Patch Set 18 : addressed feedbacks #

Total comments: 1

Patch Set 19 : Addressed to Julien and Zhenyao's feedback #

Patch Set 20 : rebase code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -3 lines) Patch
M AUTHORS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M content/test/gpu/gpu_tests/webgl2_conformance_expectations.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +0 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +25 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_srgb_converter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_srgb_converter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +94 lines, -0 lines 0 comments Download
M gpu/config/gpu_driver_bug_list_json.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +32 lines, -1 line 0 comments Download
M gpu/config/gpu_driver_bug_workaround_type.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 182 (138 generated)
yunchao
Good work, Yizhou. lgtm with nits. https://codereview.chromium.org/2318313004/diff/100001/gpu/command_buffer/service/gles2_cmd_srgb_converter.cc File gpu/command_buffer/service/gles2_cmd_srgb_converter.cc (right): https://codereview.chromium.org/2318313004/diff/100001/gpu/command_buffer/service/gles2_cmd_srgb_converter.cc#newcode577 gpu/command_buffer/service/gles2_cmd_srgb_converter.cc:577: glBindFramebufferEXT(GL_READ_FRAMEBUFFER, srgb_encoder_fbo_); decoder_fbo_ ...
4 years, 3 months ago (2016-09-13 08:55:40 UTC) #6
yizhou.jiang
Thank you for your review, yunchao. I have revised the code, PTAL.
4 years, 3 months ago (2016-09-14 02:59:29 UTC) #7
yunchao
Yizhou, please see the comments inline and update your code. https://codereview.chromium.org/2318313004/diff/160001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2318313004/diff/160001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode6018 ...
4 years, 3 months ago (2016-09-19 15:25:48 UTC) #9
yunchao
One more nits. https://codereview.chromium.org/2318313004/diff/180001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2318313004/diff/180001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode6017 gpu/command_buffer/service/gles2_cmd_decoder.cc:6017: } else { Please add a ...
4 years, 3 months ago (2016-09-20 06:01:57 UTC) #11
qiankun
Great work! Some suggestions. Find a more meaningful title of this CL and add description ...
4 years, 3 months ago (2016-09-20 06:11:09 UTC) #12
yunchao
On 2016/09/20 06:11:09, qiankun wrote: > Great work! Some suggestions. > Find a more meaningful ...
4 years, 3 months ago (2016-09-20 06:17:49 UTC) #13
yizhou.jiang
@yunchao @qiankun Thank you for your review, the code has been updated. PTAL.
4 years, 3 months ago (2016-09-20 06:57:28 UTC) #16
yizhou.jiang
@yunchao @qiankun Thank you for your review, I have revised the code, PTAL. https://codereview.chromium.org/2318313004/diff/160001/gpu/command_buffer/service/gles2_cmd_decoder.cc File ...
4 years, 3 months ago (2016-09-20 07:00:28 UTC) #17
yunchao
The code is much better now. Yizhou, please update the conformance test in webgl2_conformance_expectation.py.
4 years, 3 months ago (2016-09-20 07:09:32 UTC) #18
yizhou.jiang
@yunchao Thank you, I have updated webgl2_conformance_expectation.py, PTAL.
4 years, 3 months ago (2016-09-20 07:38:00 UTC) #20
yizhou.jiang
PTAL. Thanks!
4 years, 3 months ago (2016-09-20 08:54:40 UTC) #22
yunchao
On 2016/09/20 08:54:40, yizhou.jiang wrote: > PTAL. Thanks! Yizhou's first patch in Chromium project. PTAL. ...
4 years, 3 months ago (2016-09-20 09:00:10 UTC) #24
piman
https://codereview.chromium.org/2318313004/diff/240001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2318313004/diff/240001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode6012 gpu/command_buffer/service/gles2_cmd_decoder.cc:6012: gl_version_info().IsAtLeastGL(4, 4)) { Is there any particular reason to ...
4 years, 3 months ago (2016-09-20 21:53:30 UTC) #25
Ken Russell (switch to Gerrit)
Thanks for this contribution Yizhou. A couple of thoughts. https://codereview.chromium.org/2318313004/diff/240001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2318313004/diff/240001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode6024 gpu/command_buffer/service/gles2_cmd_decoder.cc:6024: ...
4 years, 3 months ago (2016-09-21 01:00:15 UTC) #26
piman
On Tue, Sep 20, 2016 at 6:00 PM, <kbr@chromium.org> wrote: > Thanks for this contribution ...
4 years, 3 months ago (2016-09-21 05:33:31 UTC) #27
yizhou.jiang
Thanks for your review, code has been updated. Could you have another look? https://codereview.chromium.org/2318313004/diff/240001/gpu/command_buffer/service/gles2_cmd_decoder.cc File ...
4 years, 3 months ago (2016-09-21 08:59:23 UTC) #29
piman
https://codereview.chromium.org/2318313004/diff/240001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2318313004/diff/240001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode6012 gpu/command_buffer/service/gles2_cmd_decoder.cc:6012: gl_version_info().IsAtLeastGL(4, 4)) { On 2016/09/21 08:59:22, yizhou.jiang wrote: > ...
4 years, 3 months ago (2016-09-21 23:45:32 UTC) #30
Ken Russell (switch to Gerrit)
The code generally looks good to me. I agree with piman's comments that it should ...
4 years, 3 months ago (2016-09-21 23:58:38 UTC) #31
Ken Russell (switch to Gerrit)
Note: I edited the issue description to put it in the preferred format. (Single summary ...
4 years, 3 months ago (2016-09-21 23:59:40 UTC) #33
yizhou.jiang
Thanks for your review.Code has been updated.PTAL. https://codereview.chromium.org/2318313004/diff/280001/gpu/command_buffer/service/gles2_cmd_srgb_converter.cc File gpu/command_buffer/service/gles2_cmd_srgb_converter.cc (right): https://codereview.chromium.org/2318313004/diff/280001/gpu/command_buffer/service/gles2_cmd_srgb_converter.cc#newcode370 gpu/command_buffer/service/gles2_cmd_srgb_converter.cc:370: // glBindTexture(GL_TEXTURE_2D, ...
4 years, 3 months ago (2016-09-22 03:56:51 UTC) #34
piman
https://codereview.chromium.org/2318313004/diff/320001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2318313004/diff/320001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode6012 gpu/command_buffer/service/gles2_cmd_decoder.cc:6012: workarounds().do_decoder_encoder_srgb_generatemipmap) { Did you mean !workarounds().do_decoder_encoder_srgb_generatemipmap ? https://codereview.chromium.org/2318313004/diff/320001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode6013 gpu/command_buffer/service/gles2_cmd_decoder.cc:6013: ...
4 years, 3 months ago (2016-09-22 19:25:00 UTC) #36
qiankun
https://codereview.chromium.org/2318313004/diff/320001/gpu/config/gpu_driver_bug_list_json.cc File gpu/config/gpu_driver_bug_list_json.cc (right): https://codereview.chromium.org/2318313004/diff/320001/gpu/config/gpu_driver_bug_list_json.cc#newcode22 gpu/config/gpu_driver_bug_list_json.cc:22: "version": "8.99", Please update the version number.
4 years, 3 months ago (2016-09-23 02:26:38 UTC) #37
yizhou.jiang
https://codereview.chromium.org/2318313004/diff/240001/gpu/command_buffer/service/gles2_cmd_srgb_converter.cc File gpu/command_buffer/service/gles2_cmd_srgb_converter.cc (right): https://codereview.chromium.org/2318313004/diff/240001/gpu/command_buffer/service/gles2_cmd_srgb_converter.cc#newcode327 gpu/command_buffer/service/gles2_cmd_srgb_converter.cc:327: GLenum target) { On 2016/09/21 01:00:14, Ken Russell wrote: ...
4 years, 3 months ago (2016-09-23 04:32:06 UTC) #38
yunchao
LGTM again with some suggestions. @piman and @kbr, could you take another look. https://codereview.chromium.org/2318313004/diff/340001/gpu/command_buffer/service/gles2_cmd_decoder.cc File ...
4 years, 3 months ago (2016-09-23 15:09:20 UTC) #39
yizhou.jiang
Thank's for your suggestion. I have revised the code, PTAL. @yunchao @piman @kbr https://codereview.chromium.org/2318313004/diff/320001/gpu/command_buffer/service/gles2_cmd_decoder.cc File ...
4 years, 2 months ago (2016-09-26 00:56:33 UTC) #40
piman
On 2016/09/23 04:32:06, yizhou.jiang wrote: > https://codereview.chromium.org/2318313004/diff/240001/gpu/command_buffer/service/gles2_cmd_srgb_converter.cc > File gpu/command_buffer/service/gles2_cmd_srgb_converter.cc (right): > > https://codereview.chromium.org/2318313004/diff/240001/gpu/command_buffer/service/gles2_cmd_srgb_converter.cc#newcode327 > ...
4 years, 2 months ago (2016-09-26 20:10:03 UTC) #41
Ken Russell (switch to Gerrit)
On 2016/09/26 20:10:03, piman OOO back 2016-09-26 wrote: > On 2016/09/23 04:32:06, yizhou.jiang wrote: > ...
4 years, 2 months ago (2016-09-26 21:36:28 UTC) #42
yizhou.jiang
@piman, I'm quite confused that the trybot reports "GpuProcess.equal_bug_workarounds_in_browser_and_gpu_process". There seems to be something wrong ...
4 years, 2 months ago (2016-09-29 12:03:36 UTC) #127
Zhenyao Mo
On 2016/09/29 12:03:36, yizhou.jiang wrote: > @piman, I'm quite confused that the trybot reports > ...
4 years, 2 months ago (2016-09-29 20:46:44 UTC) #128
Ken Russell (switch to Gerrit)
On 2016/09/29 20:46:44, Zhenyao Mo wrote: > On 2016/09/29 12:03:36, yizhou.jiang wrote: > > @piman, ...
4 years, 2 months ago (2016-09-29 22:24:43 UTC) #129
Julien Isorce Samsung
Hi, the failing test should work because gpu process sends the updated GpuInfo back to ...
4 years, 2 months ago (2016-09-29 23:07:26 UTC) #130
Julien Isorce Samsung
Hi, could you temporarily include the fix https://codereview.chromium.org/2379153002 in your CL and hit a CQ ...
4 years, 2 months ago (2016-09-29 23:38:17 UTC) #131
yunchao
On 2016/09/29 23:07:26, Julien Isorce wrote: > Hi, the failing test should work because gpu ...
4 years, 2 months ago (2016-09-29 23:40:15 UTC) #132
Julien Isorce Samsung
On 2016/09/29 23:40:15, yunchao wrote: > Thanks for your trying, @Julien. How to run the ...
4 years, 2 months ago (2016-09-29 23:57:51 UTC) #133
Julien Isorce Samsung
https://codereview.chromium.org/2318313004/diff/750001/gpu/config/gpu_driver_bug_list_json.cc File gpu/config/gpu_driver_bug_list_json.cc (left): https://codereview.chromium.org/2318313004/diff/750001/gpu/config/gpu_driver_bug_list_json.cc#oldcode2046 gpu/config/gpu_driver_bug_list_json.cc:2046: } Because of crbug.com/222934, you cannot rely on gl_version ...
4 years, 2 months ago (2016-10-04 13:41:25 UTC) #146
Zhenyao Mo
On 2016/10/04 13:41:25, Julien Isorce wrote: > https://codereview.chromium.org/2318313004/diff/750001/gpu/config/gpu_driver_bug_list_json.cc > File gpu/config/gpu_driver_bug_list_json.cc (left): > > https://codereview.chromium.org/2318313004/diff/750001/gpu/config/gpu_driver_bug_list_json.cc#oldcode2046 ...
4 years, 2 months ago (2016-10-04 17:34:13 UTC) #147
yizhou.jiang
On 2016/10/04 17:34:13, Zhenyao Mo wrote: > On 2016/10/04 13:41:25, Julien Isorce wrote: > > ...
4 years, 2 months ago (2016-10-08 10:10:37 UTC) #166
Zhenyao Mo
lgtm
4 years, 2 months ago (2016-10-10 20:06:06 UTC) #168
Zhenyao Mo
lgtm
4 years, 2 months ago (2016-10-10 20:06:16 UTC) #169
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/2318313004/870001
4 years, 2 months ago (2016-10-11 03:02:10 UTC) #172
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/84221) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 2 months ago (2016-10-11 03:04:50 UTC) #174
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/2318313004/890001
4 years, 2 months ago (2016-10-11 05:35:00 UTC) #177
commit-bot: I haz the power
Committed patchset #20 (id:890001)
4 years, 2 months ago (2016-10-11 06:21:28 UTC) #179
commit-bot: I haz the power
4 years, 2 months ago (2016-10-11 06:22:41 UTC) #181
Message was sent while issue was closed.
Patchset 20 (id:??) landed as
https://crrev.com/da573a8ab571bb73d3539a66abbe5c2efd47d7b7
Cr-Commit-Position: refs/heads/master@{#424377}

Powered by Google App Engine
This is Rietveld 408576698