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

Issue 2117183006: gpu: Clarify sized texture format is available only if ES3 context or immutable texture is supported (Closed)

Created:
4 years, 5 months ago by dshwang
Modified:
4 years, 2 months ago
CC:
chromium-reviews, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

gpu: Clarify the sized texture format is available only if ES3 context or immutable texture is supported. This clarification makes it possible that gles2 decoder tracks true internal format of immutable texture. So this CL removes internal_format hack in GLES2DecoderImpl::TexStorageImpl() In addition, it makes CMAA skip redundant copy path because CMAA can know true internal format. BUG=535198 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/730f8089f791fa31a3ee2a7f5059a1052b129d21 Cr-Commit-Position: refs/heads/master@{#425684}

Patch Set 1 #

Patch Set 2 : rely on right extension #

Total comments: 1

Patch Set 3 : rely on right extension #

Patch Set 4 : rebase to ToT #

Total comments: 5

Patch Set 5 : sized format is available if es3 context or immutable texture #

Total comments: 1

Patch Set 6 : add new test; InternalFormatBleedingToTexImage #

Total comments: 10

Patch Set 7 : fix oes-texture-float.html #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -61 lines) Patch
M gpu/command_buffer/service/feature_info.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/feature_info.cc View 1 2 3 4 5 6 8 chunks +21 lines, -10 lines 0 comments Download
M gpu/command_buffer/service/framebuffer_manager_unittest.cc View 1 2 3 4 5 6 4 chunks +9 lines, -18 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 1 chunk +6 lines, -10 lines 0 comments Download
M gpu/command_buffer/service/texture_manager.h View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/texture_manager.cc View 1 2 3 4 5 6 7 chunks +46 lines, -19 lines 2 comments Download
M gpu/command_buffer/tests/gl_texture_storage_unittest.cc View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 59 (39 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2117183006/20001
4 years, 5 months ago (2016-07-07 21:43:53 UTC) #3
commit-bot: I haz the power
Dry run: 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/241520)
4 years, 5 months ago (2016-07-07 22:29:44 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2117183006/20001
4 years, 5 months ago (2016-07-08 09:15:37 UTC) #7
dshwang
zmo@, could you review? https://codereview.chromium.org/2117183006/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (left): https://codereview.chromium.org/2117183006/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc#oldcode15100 gpu/command_buffer/service/gles2_cmd_decoder.cc:15100: feature_info_->IsES3Enabled() ? internal_format : format; ...
4 years, 2 months ago (2016-10-10 15:45:49 UTC) #19
Zhenyao Mo
https://codereview.chromium.org/2117183006/diff/60001/gpu/command_buffer/service/feature_info.cc File gpu/command_buffer/service/feature_info.cc (right): https://codereview.chromium.org/2117183006/diff/60001/gpu/command_buffer/service/feature_info.cc#newcode1121 gpu/command_buffer/service/feature_info.cc:1121: if (!validators_.texture_sized_color_renderable_internal_format.IsValid( I am not sure I follow the ...
4 years, 2 months ago (2016-10-10 20:30:29 UTC) #20
dshwang
Thx for reviewing. I answer the question. https://codereview.chromium.org/2117183006/diff/60001/gpu/command_buffer/service/feature_info.cc File gpu/command_buffer/service/feature_info.cc (right): https://codereview.chromium.org/2117183006/diff/60001/gpu/command_buffer/service/feature_info.cc#newcode1121 gpu/command_buffer/service/feature_info.cc:1121: if (!validators_.texture_sized_color_renderable_internal_format.IsValid( ...
4 years, 2 months ago (2016-10-10 20:57:10 UTC) #21
Zhenyao Mo
https://codereview.chromium.org/2117183006/diff/60001/gpu/command_buffer/service/feature_info.cc File gpu/command_buffer/service/feature_info.cc (right): https://codereview.chromium.org/2117183006/diff/60001/gpu/command_buffer/service/feature_info.cc#newcode1121 gpu/command_buffer/service/feature_info.cc:1121: if (!validators_.texture_sized_color_renderable_internal_format.IsValid( On 2016/10/10 20:57:10, dshwang wrote: > On ...
4 years, 2 months ago (2016-10-10 21:00:27 UTC) #22
dshwang
https://codereview.chromium.org/2117183006/diff/60001/gpu/command_buffer/service/feature_info.cc File gpu/command_buffer/service/feature_info.cc (right): https://codereview.chromium.org/2117183006/diff/60001/gpu/command_buffer/service/feature_info.cc#newcode1121 gpu/command_buffer/service/feature_info.cc:1121: if (!validators_.texture_sized_color_renderable_internal_format.IsValid( On 2016/10/10 21:00:27, Zhenyao Mo wrote: > ...
4 years, 2 months ago (2016-10-10 21:18:30 UTC) #23
Zhenyao Mo
On 2016/10/10 21:18:30, dshwang wrote: > https://codereview.chromium.org/2117183006/diff/60001/gpu/command_buffer/service/feature_info.cc > File gpu/command_buffer/service/feature_info.cc (right): > > https://codereview.chromium.org/2117183006/diff/60001/gpu/command_buffer/service/feature_info.cc#newcode1121 > ...
4 years, 2 months ago (2016-10-10 21:25:27 UTC) #24
dshwang
Zhenyao, I resolved your concern as well as fixed the existing bug. could you review ...
4 years, 2 months ago (2016-10-13 14:21:07 UTC) #29
Zhenyao Mo
Mostly looks good to me https://codereview.chromium.org/2117183006/diff/140001/gpu/command_buffer/service/feature_info.cc File gpu/command_buffer/service/feature_info.cc (right): https://codereview.chromium.org/2117183006/diff/140001/gpu/command_buffer/service/feature_info.cc#newcode689 gpu/command_buffer/service/feature_info.cc:689: if (IsES3Capable()) { This ...
4 years, 2 months ago (2016-10-13 21:23:38 UTC) #42
Zhenyao Mo
Also, the webgl2 test failure seems real.
4 years, 2 months ago (2016-10-13 21:24:22 UTC) #43
dshwang
Zhenyao, I resolved all concerns. could you review again? https://codereview.chromium.org/2117183006/diff/140001/gpu/command_buffer/service/feature_info.cc File gpu/command_buffer/service/feature_info.cc (right): https://codereview.chromium.org/2117183006/diff/140001/gpu/command_buffer/service/feature_info.cc#newcode689 gpu/command_buffer/service/feature_info.cc:689: ...
4 years, 2 months ago (2016-10-14 12:03:35 UTC) #47
Zhenyao Mo
Mostly looks good with one minor concern of losing test coverage. However, we have webgl2 ...
4 years, 2 months ago (2016-10-14 21:05:09 UTC) #50
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/2117183006/160001
4 years, 2 months ago (2016-10-17 14:26:03 UTC) #52
dshwang
thx for reviewing. https://codereview.chromium.org/2117183006/diff/140001/gpu/command_buffer/service/framebuffer_manager_unittest.cc File gpu/command_buffer/service/framebuffer_manager_unittest.cc (right): https://codereview.chromium.org/2117183006/diff/140001/gpu/command_buffer/service/framebuffer_manager_unittest.cc#newcode497 gpu/command_buffer/service/framebuffer_manager_unittest.cc:497: const GLenum kFormat3 = GL_RGB565; On ...
4 years, 2 months ago (2016-10-17 15:22:31 UTC) #53
commit-bot: I haz the power
Committed patchset #7 (id:160001)
4 years, 2 months ago (2016-10-17 15:26:47 UTC) #55
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/730f8089f791fa31a3ee2a7f5059a1052b129d21 Cr-Commit-Position: refs/heads/master@{#425684}
4 years, 2 months ago (2016-10-17 15:28:29 UTC) #57
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/2117183006/diff/160001/gpu/command_buffer/service/texture_manager.cc File gpu/command_buffer/service/texture_manager.cc (right): https://codereview.chromium.org/2117183006/diff/160001/gpu/command_buffer/service/texture_manager.cc#newcode326 gpu/command_buffer/service/texture_manager.cc:326: } On 2016/10/14 12:03:34, dshwang wrote: > > Also, ...
4 years, 2 months ago (2016-10-20 04:59:40 UTC) #58
mcasas
4 years, 1 month ago (2016-10-24 22:05:20 UTC) #59
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:160001) has been created in
https://codereview.chromium.org/2443123004/ by mcasas@chromium.org.

The reason for reverting is: Broke playing back recorded data as detailed
in https://crbug.com/657532.  The bug has 
step-by-step notes on how to repro (see also #4
in there).

Locally reverting of this CL restores the functionality..

Powered by Google App Engine
This is Rietveld 408576698