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

Issue 2623863002: Support level > 0 for CopyTextureCHROMIUM extension (Closed)

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

Description

Support level > 0 for CopyTextureCHROMIUM extension Source level > 0 is not supported in ES 2.0 due to glFramebufferTexture2D doesn't support level > 0 in ES 2.0. Run into DRAW_AND_COPY path for dest level > 0 in ES 2.0, i.e. draw the source texture to a fbo attaching level 0 of an intermediate texture, then use glCopyTexImage2D to copy intermediate texture to dest texture. For ES 3.0, we can set base level of source and dest texture to the specifed level respectively, then do CopyTextureCHROMIUM as before, restore base level to previous value at the end of CopyTextureCHROMIUM. But we fall back to DRAW_AND_COPY path due to driver bug of base level on some scenarios. BUG=612542 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 Review-Url: https://codereview.chromium.org/2623863002 Cr-Commit-Position: refs/heads/master@{#444295} Committed: https://chromium.googlesource.com/chromium/src/+/cbaeb8aa76be268c5179deb56e67a765303e34cc

Patch Set 1 #

Total comments: 4

Patch Set 2 : restore base level #

Patch Set 3 : fix Android bot #

Total comments: 6

Patch Set 4 : rebase only #

Patch Set 5 : skip dest_level > 0 on Android #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -146 lines) Patch
M gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h View 5 chunks +10 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc View 1 17 chunks +73 lines, -40 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 21 chunks +127 lines, -88 lines 1 comment Download
M gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc View 1 2 3 4 6 chunks +47 lines, -16 lines 1 comment Download

Messages

Total messages: 33 (10 generated)
qiankun
PTAL.
3 years, 11 months ago (2017-01-10 13:31:08 UTC) #3
Zhenyao Mo
Mostly look good with a few minor issues and a question. https://codereview.chromium.org/2623863002/diff/1/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc File gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc (right): ...
3 years, 11 months ago (2017-01-10 20:11:23 UTC) #4
qiankun
https://codereview.chromium.org/2623863002/diff/1/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc File gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc (right): https://codereview.chromium.org/2623863002/diff/1/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc#newcode523 gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc:523: glTexParameteri(target, GL_TEXTURE_BASE_LEVEL, level); On 2017/01/10 20:11:22, Zhenyao Mo wrote: ...
3 years, 11 months ago (2017-01-11 10:58:22 UTC) #6
Zhenyao Mo
https://codereview.chromium.org/2623863002/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2623863002/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode5571 gpu/command_buffer/service/gles2_cmd_decoder.cc:5571: #if defined(OS_ANDROID) On 2017/01/11 10:58:22, qiankun wrote: > It ...
3 years, 11 months ago (2017-01-11 18:41:42 UTC) #7
Ken Russell (switch to Gerrit)
Thanks for working on this Qiankun. I defer review to Mo, but a couple of ...
3 years, 11 months ago (2017-01-11 19:53:03 UTC) #8
qiankun
https://codereview.chromium.org/2623863002/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2623863002/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode5571 gpu/command_buffer/service/gles2_cmd_decoder.cc:5571: #if defined(OS_ANDROID) On 2017/01/11 19:53:03, Ken Russell wrote: > ...
3 years, 11 months ago (2017-01-12 15:38:16 UTC) #9
Zhenyao Mo
On 2017/01/12 15:38:16, qiankun wrote: > https://codereview.chromium.org/2623863002/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder.cc > File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): > > https://codereview.chromium.org/2623863002/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode5571 > ...
3 years, 11 months ago (2017-01-12 18:11:12 UTC) #10
Ken Russell (switch to Gerrit)
Thanks for pushing this forward. I still defer to zmo's review, and it's OK to ...
3 years, 11 months ago (2017-01-13 05:08:37 UTC) #11
qiankun
Thanks your careful review Zhenyao and Ken! After considering this further, I think we can ...
3 years, 11 months ago (2017-01-13 13:32:09 UTC) #12
Zhenyao Mo
On 2017/01/13 13:32:09, qiankun wrote: > Thanks your careful review Zhenyao and Ken! > After ...
3 years, 11 months ago (2017-01-13 18:30:57 UTC) #13
Ken Russell (switch to Gerrit)
On 2017/01/13 18:30:57, Zhenyao Mo wrote: > On 2017/01/13 13:32:09, qiankun wrote: > > Thanks ...
3 years, 11 months ago (2017-01-13 19:57:49 UTC) #14
qiankun
On 2017/01/13 18:30:57, Zhenyao Mo wrote: > On 2017/01/13 13:32:09, qiankun wrote: > > Thanks ...
3 years, 11 months ago (2017-01-14 00:18:22 UTC) #15
qiankun
https://codereview.chromium.org/2623863002/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2623863002/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode16416 gpu/command_buffer/service/gles2_cmd_decoder.cc:16416: } See the comments here. The current implementation doesn't ...
3 years, 11 months ago (2017-01-14 00:23:25 UTC) #16
qiankun
On 2017/01/13 19:57:49, Ken Russell wrote: > > I think restricting source_level to 0 is ...
3 years, 11 months ago (2017-01-14 00:31:18 UTC) #17
Zhenyao Mo
On 2017/01/14 00:31:18, qiankun wrote: > On 2017/01/13 19:57:49, Ken Russell wrote: > > > ...
3 years, 11 months ago (2017-01-14 00:56:11 UTC) #18
qiankun
On 2017/01/14 00:56:11, Zhenyao Mo wrote: > On 2017/01/14 00:31:18, qiankun wrote: > > On ...
3 years, 11 months ago (2017-01-14 01:07:36 UTC) #19
Ken Russell (switch to Gerrit)
On 2017/01/14 00:31:18, qiankun wrote: > On 2017/01/13 19:57:49, Ken Russell wrote: > > > ...
3 years, 11 months ago (2017-01-14 22:12:59 UTC) #20
Zhenyao Mo
On 2017/01/14 01:07:36, qiankun wrote: > On 2017/01/14 00:56:11, Zhenyao Mo wrote: > > On ...
3 years, 11 months ago (2017-01-17 18:16:57 UTC) #21
Zhenyao Mo
On 2017/01/17 18:16:57, Zhenyao Mo wrote: > On 2017/01/14 01:07:36, qiankun wrote: > > On ...
3 years, 11 months ago (2017-01-17 18:21:01 UTC) #22
Zhenyao Mo
On 2017/01/17 18:21:01, Zhenyao Mo wrote: > On 2017/01/17 18:16:57, Zhenyao Mo wrote: > > ...
3 years, 11 months ago (2017-01-17 18:21:52 UTC) #23
qiankun
On 2017/01/17 18:21:52, Zhenyao Mo wrote: > On 2017/01/17 18:21:01, Zhenyao Mo wrote: > > ...
3 years, 11 months ago (2017-01-18 06:25:38 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/2623863002/100001
3 years, 11 months ago (2017-01-18 06:26:04 UTC) #30
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 06:30:55 UTC) #33
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/cbaeb8aa76be268c5179deb56e67...

Powered by Google App Engine
This is Rietveld 408576698