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

Issue 2479513002: Reland of Extend CopyTextureCHROMIUM to more ES 3.0 texture formats. (Closed)

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

Description

Reland of Extend CopyTextureCHROMIUM to more ES 3.0 texture formats. Add support for the following copying techniques: 1) Using CopyTexImage2D when the source is color-renderable. 2) Drawing a quad when the destination is color-renderable. 3) Drawing to an intermediate texture, and copying from that intermediate texture to the destination, when neither is color-renderable. Add support for nearly all of the new ES 3.0 texture formats. Follow-on work remains, including some scenarios described in the bug, such as copying to faces of currently-incomplete cube maps. 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 Committed: https://crrev.com/bcf132827ebd0436fd3620bbda4cbcf3febdc161 Committed: https://crrev.com/d12b5bc5fbeaa7729873bb7274fe8841de432c22 Cr-Original-Commit-Position: refs/heads/master@{#439312} Cr-Commit-Position: refs/heads/master@{#439701}

Patch Set 1 #

Patch Set 2 : support CopySubTextureCHROMIUM #

Total comments: 4

Patch Set 3 : fix windows and mac bot #

Total comments: 2

Patch Set 4 : Compare color on certain number of channels in gl_tests #

Patch Set 5 : Implement CopyTextureCHROMIUM extension (part 1) #

Total comments: 2

Patch Set 6 : fix windows bots #

Patch Set 7 : rebase only #

Patch Set 8 : full path #

Total comments: 2

Patch Set 9 : fix ES2 context #

Patch Set 10 : Add full gl_tests #

Patch Set 11 : fix bots #

Patch Set 12 : fix bgra #

Patch Set 13 : Add sRGB extension support #

Patch Set 14 : add missing file for SRGB ext fixup #

Patch Set 15 : rebase and minor fix for premultiply and un-premultiply alpha #

Total comments: 24

Patch Set 16 : fix comments from zmo #17 #

Total comments: 18

Patch Set 17 : rebase only #

Patch Set 18 : fix comments#19 #

Total comments: 26

Patch Set 19 : rebase only #

Patch Set 20 : fix comment#26 #

Patch Set 21 : rebase only #

Patch Set 22 : cache fragment shader and program #

Patch Set 23 : fix compressed formats #

Patch Set 24 : fix compressed formats #

Total comments: 2

Patch Set 25 : remove addressed TODO #

Patch Set 26 : fix GL_TEXTURE_EXTERNAL_OES in ES3 context #

Patch Set 27 : add vertex shader cache #

Patch Set 28 : rebase only #

Patch Set 29 : fix-opengl-lessthan-32 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1160 lines, -281 lines) Patch
M gpu/command_buffer/common/gles2_cmd_utils.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +32 lines, -32 lines 0 comments Download
M gpu/command_buffer/service/feature_info.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/feature_info.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 6 chunks +31 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 13 chunks +509 lines, -177 lines 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 20 21 22 23 24 25 26 27 17 chunks +169 lines, -62 lines 0 comments Download
M gpu/command_buffer/service/texture_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +4 lines, -4 lines 0 comments Download
M gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 5 chunks +411 lines, -2 lines 0 comments Download

Messages

Total messages: 78 (30 generated)
qiankun
Please take a look at the path using glCopyTexImage2D. There are still some hacks in ...
4 years, 1 month ago (2016-11-03 16:02:07 UTC) #3
Zhenyao Mo
It looks fine in general, but I didn't exactly do a line by line review ...
4 years, 1 month ago (2016-11-03 22:55:35 UTC) #4
qiankun
On 2016/11/03 22:55:35, Zhenyao Mo wrote: > It looks fine in general, but I didn't ...
4 years, 1 month ago (2016-11-04 09:06:56 UTC) #5
qiankun
On 2016/11/04 09:06:56, qiankun wrote: > On 2016/11/03 22:55:35, Zhenyao Mo wrote: > > It ...
4 years, 1 month ago (2016-11-04 13:12:47 UTC) #6
Ken Russell (switch to Gerrit)
On 2016/11/04 13:12:47, qiankun wrote: > On 2016/11/04 09:06:56, qiankun wrote: > > On 2016/11/03 ...
4 years, 1 month ago (2016-11-04 18:28:22 UTC) #7
qiankun
I did a code refactor. I think it's almost ready for review. I uploaded a ...
4 years, 1 month ago (2016-11-09 15:21:39 UTC) #8
Zhenyao Mo
the bots are still red. https://codereview.chromium.org/2479513002/diff/80001/gpu/command_buffer/tests/gl_test_utils.h File gpu/command_buffer/tests/gl_test_utils.h (right): https://codereview.chromium.org/2479513002/diff/80001/gpu/command_buffer/tests/gl_test_utils.h#newcode68 gpu/command_buffer/tests/gl_test_utils.h:68: int channel_count = 4); ...
4 years, 1 month ago (2016-11-10 01:47:25 UTC) #9
qiankun
All bots are green now. Please help to review.
4 years, 1 month ago (2016-11-11 15:32:22 UTC) #11
qiankun
There are some failures on Windows d3d9. I will investigate it tomorrow. I didn't reproduce ...
4 years, 1 month ago (2016-11-14 16:56:28 UTC) #13
Zhenyao Mo
Qiankun, I didn't do a complete review because there are still some amount of work ...
4 years, 1 month ago (2016-11-14 20:04:51 UTC) #14
Zhenyao Mo
Also please run against android gpu bot.
4 years, 1 month ago (2016-11-14 20:07:37 UTC) #15
qiankun
Very sorry for late. I took a lot of time to make the tests pass ...
4 years, 1 month ago (2016-11-18 01:25:40 UTC) #16
Zhenyao Mo
Mostly looks good, but I still have a few questions. (I will be on vacation ...
4 years, 1 month ago (2016-11-19 00:42:33 UTC) #17
qiankun
Ken, I fixed zhenyao's comments. Please help to review this CL when you are free. ...
4 years ago (2016-11-21 16:01:50 UTC) #18
Zhenyao Mo
Mostly looks good. Tests need some extra work though. https://codereview.chromium.org/2479513002/diff/320001/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/2479513002/diff/320001/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc#newcode312 gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc:312: ...
4 years ago (2016-12-01 01:34:02 UTC) #19
Zhenyao Mo
kbr just reminded me that if is is cubemap in ES2, and if it is ...
4 years ago (2016-12-01 01:50:42 UTC) #20
qiankun
https://codereview.chromium.org/2479513002/diff/320001/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/2479513002/diff/320001/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc#newcode312 gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc:312: DLOG(ERROR) << "CopyTextureCHROMIUM: shader compilation failure." << log; On ...
4 years ago (2016-12-02 16:53:46 UTC) #22
qiankun
On 2016/12/01 01:50:42, Zhenyao Mo wrote: > kbr just reminded me that if is is ...
4 years ago (2016-12-02 17:01:51 UTC) #23
Zhenyao Mo
I think this CL is already big enough, so LGTM as is (but wait for ...
4 years ago (2016-12-03 00:39:20 UTC) #24
Ken Russell (switch to Gerrit)
Very nice work Qiankun. Thank you for your persistence with this patch and sorry for ...
4 years ago (2016-12-07 06:38:02 UTC) #26
Ken Russell (switch to Gerrit)
Any update on this? We would really like to get it landed. The program cache ...
4 years ago (2016-12-09 19:26:50 UTC) #29
qiankun
Please review Patch Set 20 for fix-up except program cache. https://codereview.chromium.org/2479513002/diff/320001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2479513002/diff/320001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode16079 ...
4 years ago (2016-12-10 00:12:41 UTC) #30
qiankun
On 2016/12/09 19:26:50, Ken Russell wrote: > Any update on this? We would really like ...
4 years ago (2016-12-10 00:25:30 UTC) #31
qiankun
Maybe the android bot failure is a flaky bug. My another ANGLE CL (https://chromium-review.googlesource.com/#/c/417169/) also ...
4 years ago (2016-12-10 00:34:25 UTC) #32
Ken Russell (switch to Gerrit)
On 2016/12/10 00:34:25, qiankun wrote: > Maybe the android bot failure is a flaky bug. ...
4 years ago (2016-12-13 23:51:28 UTC) #33
Ken Russell (switch to Gerrit)
Excellent. Sorry for the delay re-reviewing. The expansion of the FragmentShaderId looks good. LGTM Please ...
4 years ago (2016-12-14 01:07:10 UTC) #34
qiankun
Thanks for reviewing. I will monitor the android bot. https://codereview.chromium.org/2479513002/diff/540001/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/2479513002/diff/540001/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc#newcode920 gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc:920: ...
4 years ago (2016-12-14 02:22:26 UTC) #35
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/2479513002/560001
4 years ago (2016-12-14 09:54:03 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/198920)
4 years ago (2016-12-14 11:44:13 UTC) #40
Ken Russell (switch to Gerrit)
On 2016/12/14 11:44:13, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years ago (2016-12-14 14:07:18 UTC) #41
qiankun
On 2016/12/14 14:07:18, Ken Russell OOO-till-Dec-12 wrote: > On 2016/12/14 11:44:13, commit-bot: I haz the ...
4 years ago (2016-12-15 15:15:36 UTC) #42
qiankun
On 2016/12/14 14:07:18, Ken Russell OOO-till-Dec-19 wrote: > On 2016/12/14 11:44:13, commit-bot: I haz the ...
4 years ago (2016-12-16 04:49:06 UTC) #43
Zhenyao Mo
On 2016/12/16 04:49:06, qiankun wrote: > On 2016/12/14 14:07:18, Ken Russell OOO-till-Dec-19 wrote: > > ...
4 years ago (2016-12-16 23:35:28 UTC) #45
qiankun
> Are you actually saying that even in ES3, as far as we use ESSL ...
4 years ago (2016-12-17 00:21:09 UTC) #46
Zhenyao Mo
On 2016/12/17 00:21:09, qiankun wrote: > > Are you actually saying that even in ES3, ...
4 years ago (2016-12-17 00:25:29 UTC) #47
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/2479513002/620001
4 years ago (2016-12-17 03:38:15 UTC) #54
commit-bot: I haz the power
Committed patchset #27 (id:620001)
4 years ago (2016-12-17 03:44:20 UTC) #57
commit-bot: I haz the power
Patchset 27 (id:??) landed as https://crrev.com/bcf132827ebd0436fd3620bbda4cbcf3febdc161 Cr-Commit-Position: refs/heads/master@{#439312}
4 years ago (2016-12-17 03:46:21 UTC) #59
Ken Russell (switch to Gerrit)
On 2016/12/17 00:21:09, qiankun wrote: > > Are you actually saying that even in ES3, ...
4 years ago (2016-12-18 03:23:00 UTC) #60
qiankun
On 2016/12/18 03:23:00, Ken Russell OOO-till-Dec-19 wrote: > On 2016/12/17 00:21:09, qiankun wrote: > > ...
4 years ago (2016-12-18 03:57:15 UTC) #61
tkent
A revert of this CL (patchset #27 id:620001) has been created in https://codereview.chromium.org/2589613002/ by tkent@chromium.org. ...
4 years ago (2016-12-19 03:55:57 UTC) #62
qiankun
Please take another look. I updated the failure reason at https://bugs.chromium.org/p/chromium/issues/detail?id=612542#c22. Can I run the ...
4 years ago (2016-12-19 08:56:38 UTC) #65
Zhenyao Mo
On 2016/12/19 08:56:38, qiankun wrote: > Please take another look. I updated the failure reason ...
4 years ago (2016-12-19 17:49:32 UTC) #66
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/2479513002/660001
4 years ago (2016-12-20 01:50:18 UTC) #69
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/2479513002/660001
4 years ago (2016-12-20 04:04:29 UTC) #72
commit-bot: I haz the power
Committed patchset #29 (id:660001)
4 years ago (2016-12-20 04:11:02 UTC) #75
commit-bot: I haz the power
Patchset 29 (id:??) landed as https://crrev.com/d12b5bc5fbeaa7729873bb7274fe8841de432c22 Cr-Commit-Position: refs/heads/master@{#439701}
4 years ago (2016-12-20 04:15:44 UTC) #77
Ken Russell (switch to Gerrit)
4 years ago (2016-12-20 05:43:50 UTC) #78
Message was sent while issue was closed.
Thanks Qiankun for tracking down the problem with the layout tests. LGTM after
the fact.

Powered by Google App Engine
This is Rietveld 408576698