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

Issue 1822643002: [Command buffer] Enable primitive restart for WebGL 2 (Closed)

Created:
4 years, 9 months ago by yunchao
Modified:
4 years, 8 months ago
CC:
chromium-reviews, rjkroege, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, binji+watch_chromium.org, tzik, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, teravest+watch_chromium.org, yusukes+watch_chromium.org, bradnelson+warch_chromium.org, piman+watch_chromium.org, darin (slow to review), ben+mojo_chromium.org, ihf+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Command buffer] Enable primitive restart for WebGL 2. This change also fixed bugs in primitiverestart.html in WebGL deqp tests. Some code come from kbr@chromium.org's https://codereview.chromium.org/1813163003/ BUG=594021, 295792, 598930 TEST=deqp/functional/gles3/primitiverestart.html CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel Committed: https://crrev.com/56aae8327a6d2e3fa4863339be9f8abeaea47680 Cr-Commit-Position: refs/heads/master@{#383931}

Patch Set 1 #

Patch Set 2 : fix build error #

Patch Set 3 : #

Patch Set 4 : remove TODOs #

Patch Set 5 : disable primitive restart during DrawArrays #

Patch Set 6 : code rebase #

Patch Set 7 : applied kbr@'s patch from https://codereview.chromium.org/1813163003/ #

Patch Set 8 : try kbr@'s and piman@'s suggestions #

Patch Set 9 : code rebase #

Patch Set 10 : update webgl2_conformance_expectation.py to test against bots #

Patch Set 11 : #

Total comments: 4

Patch Set 12 : code rebase #

Patch Set 13 : fix bug #

Total comments: 3

Patch Set 14 : fix coding style and update webgl2_conformance_expectations.py #

Unified diffs Side-by-side diffs Delta from patch set Stats (+365 lines, -137 lines) Patch
M content/test/gpu/gpu_tests/webgl2_conformance_expectations.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -1 line 0 comments Download
M gpu/command_buffer/service/buffer_manager.h View 1 2 3 4 5 6 6 chunks +14 lines, -4 lines 0 comments Download
M gpu/command_buffer/service/buffer_manager.cc View 1 2 3 4 5 6 5 chunks +76 lines, -6 lines 0 comments Download
M gpu/command_buffer/service/buffer_manager_unittest.cc View 1 2 3 4 5 6 5 chunks +170 lines, -115 lines 0 comments Download
M gpu/command_buffer/service/context_state.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -3 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 6 chunks +39 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M ui/gl/generate_bindings.py View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/gl/gl_bindings_api_autogen_gl.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/gl_bindings_autogen_gl.h View 4 chunks +5 lines, -0 lines 0 comments Download
M ui/gl/gl_bindings_autogen_gl.cc View 7 chunks +35 lines, -0 lines 0 comments Download
M ui/gl/gl_bindings_autogen_mock.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/gl_bindings_autogen_mock.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M ui/gl/gl_mock_autogen_gl.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 75 (26 generated)
yunchao
PTAL. Thanks a lot!
4 years, 9 months ago (2016-03-21 15:14:10 UTC) #5
yunchao
On 2016/03/21 15:14:10, yunchao wrote: > PTAL. Thanks a lot! Most of the code is ...
4 years, 9 months ago (2016-03-21 15:14:56 UTC) #6
piman
1- why do we need this? It is not in GL ES 3.0/3.1. 2- how ...
4 years, 9 months ago (2016-03-21 19:21:25 UTC) #7
Zhenyao Mo
On 2016/03/21 19:21:25, piman wrote: > 1- why do we need this? It is not ...
4 years, 9 months ago (2016-03-21 21:14:30 UTC) #8
Ken Russell (switch to Gerrit)
This entry point needs to be accessible from the command buffer service side, but should ...
4 years, 9 months ago (2016-03-21 21:17:43 UTC) #9
piman
Ah, it sounds like you only want the part in ui/gl then.
4 years, 9 months ago (2016-03-21 21:51:19 UTC) #10
Zhenyao Mo
On 2016/03/21 21:51:19, piman wrote: > Ah, it sounds like you only want the part ...
4 years, 9 months ago (2016-03-21 21:53:23 UTC) #11
yunchao
On 2016/03/21 21:53:23, Zhenyao Mo wrote: > On 2016/03/21 21:51:19, piman wrote: > > Ah, ...
4 years, 9 months ago (2016-03-22 23:37:51 UTC) #13
Ken Russell (switch to Gerrit)
Very nice Yunchao. Current patch set LGTM. I'm not an owner of all the files ...
4 years, 9 months ago (2016-03-23 00:20:05 UTC) #14
yunchao
On 2016/03/23 00:20:05, Ken Russell wrote: > Very nice Yunchao. Current patch set LGTM. I'm ...
4 years, 9 months ago (2016-03-23 00:57:44 UTC) #15
Ken Russell (switch to Gerrit)
On 2016/03/23 00:20:05, Ken Russell wrote: > Very nice Yunchao. Current patch set LGTM. I'm ...
4 years, 9 months ago (2016-03-23 01:39:29 UTC) #16
yunchao
On 2016/03/23 01:39:29, Ken Russell wrote: > On 2016/03/23 00:20:05, Ken Russell wrote: > > ...
4 years, 9 months ago (2016-03-23 01:44:45 UTC) #17
Ken Russell (switch to Gerrit)
On 2016/03/23 01:44:45, yunchao wrote: > On 2016/03/23 01:39:29, Ken Russell wrote: > > On ...
4 years, 9 months ago (2016-03-23 02:28:09 UTC) #18
yunchao
On 2016/03/23 02:28:09, Ken Russell wrote: > On 2016/03/23 01:44:45, yunchao wrote: > > On ...
4 years, 9 months ago (2016-03-23 02:55:28 UTC) #19
Ken Russell (switch to Gerrit)
On 2016/03/23 02:55:28, yunchao wrote: > On 2016/03/23 02:28:09, Ken Russell wrote: > > On ...
4 years, 9 months ago (2016-03-23 17:21:33 UTC) #20
Ken Russell (switch to Gerrit)
Thanks Yunchao for combining the CLs. The code LGTM, but the mac_optional_gpu_tests_rel failures are concerning. ...
4 years, 9 months ago (2016-03-23 17:31:11 UTC) #21
Zhenyao Mo
The code lgtm too, but I tried your CL on my mac (10.11, AMD Radeon ...
4 years, 9 months ago (2016-03-23 20:06:40 UTC) #22
piman
Agreed with kbr@, I think it would be simpler to only enable GL_PRIMITIVE_RESTART during indexed ...
4 years, 9 months ago (2016-03-23 20:50:46 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1822643002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1822643002/160001
4 years, 9 months ago (2016-03-23 23:44:24 UTC) #25
Ken Russell (switch to Gerrit)
On 2016/03/23 17:21:33, Ken Russell wrote: > On 2016/03/23 02:55:28, yunchao wrote: > > On ...
4 years, 9 months ago (2016-03-24 00:04:32 UTC) #26
yunchao
> zmo@ just landed a WebGL conformance roll in > https://codereview.chromium.org/1802803002/ . Please tell him ...
4 years, 9 months ago (2016-03-24 00:07:56 UTC) #27
yunchao
On 2016/03/24 00:07:56, yunchao wrote: > > zmo@ just landed a WebGL conformance roll in ...
4 years, 9 months ago (2016-03-24 00:17:54 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-24 00:59:35 UTC) #30
yunchao
On 2016/03/24 00:59:35, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
4 years, 9 months ago (2016-03-24 14:53:54 UTC) #31
Ken Russell (switch to Gerrit)
Very nice Yunchao. LGTM. The WebGL conformance roll has landed, so this can now be ...
4 years, 9 months ago (2016-03-24 19:12:56 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1822643002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1822643002/200001
4 years, 9 months ago (2016-03-24 19:13:47 UTC) #35
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_optional_gpu_tests_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_optional_gpu_tests_rel/builds/286)
4 years, 9 months ago (2016-03-24 22:26:30 UTC) #37
Ken Russell (switch to Gerrit)
On 2016/03/24 22:26:30, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
4 years, 9 months ago (2016-03-24 23:27:47 UTC) #38
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1822643002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1822643002/220001
4 years, 9 months ago (2016-03-25 15:28:15 UTC) #40
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/160772)
4 years, 9 months ago (2016-03-25 15:36:47 UTC) #42
yunchao
On 2016/03/24 23:27:47, Ken Russell wrote: > On 2016/03/24 22:26:30, commit-bot: I haz the power ...
4 years, 9 months ago (2016-03-25 16:29:57 UTC) #43
Zhenyao Mo
On 2016/03/25 16:29:57, yunchao wrote: > On 2016/03/24 23:27:47, Ken Russell wrote: > > On ...
4 years, 9 months ago (2016-03-25 17:24:00 UTC) #44
Zhenyao Mo
https://codereview.chromium.org/1822643002/diff/220001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1822643002/diff/220001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode8390 gpu/command_buffer/service/gles2_cmd_decoder.cc:8390: feature_info_->feature_flags().emulate_primitive_restart_fixed_index) { nit: this is beyond 80 characters. https://codereview.chromium.org/1822643002/diff/220001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode8402 ...
4 years, 9 months ago (2016-03-25 17:24:29 UTC) #45
yunchao
On 2016/03/25 17:24:00, Zhenyao Mo wrote: > On 2016/03/25 16:29:57, yunchao wrote: > > On ...
4 years, 9 months ago (2016-03-26 00:30:45 UTC) #46
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1822643002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1822643002/240001
4 years, 8 months ago (2016-03-29 09:52:27 UTC) #48
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/161438)
4 years, 8 months ago (2016-03-29 10:01:01 UTC) #50
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1822643002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1822643002/260001
4 years, 8 months ago (2016-03-29 13:31:00 UTC) #52
yunchao
On 2016/03/26 00:30:45, yunchao wrote: > On 2016/03/25 17:24:00, Zhenyao Mo wrote: > > On ...
4 years, 8 months ago (2016-03-29 15:46:23 UTC) #53
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_optional_gpu_tests_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_optional_gpu_tests_rel/builds/320)
4 years, 8 months ago (2016-03-29 16:14:59 UTC) #56
Zhenyao Mo
Good work finding the root cause. However, the mac bot test is still failing. https://codereview.chromium.org/1822643002/diff/260001/gpu/command_buffer/service/context_state.cc ...
4 years, 8 months ago (2016-03-29 16:30:15 UTC) #57
Ken Russell (switch to Gerrit)
On 2016/03/29 16:30:15, Zhenyao Mo wrote: > Good work finding the root cause. > > ...
4 years, 8 months ago (2016-03-30 01:02:42 UTC) #59
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/1822643002/diff/260001/gpu/command_buffer/service/context_state.cc File gpu/command_buffer/service/context_state.cc (right): https://codereview.chromium.org/1822643002/diff/260001/gpu/command_buffer/service/context_state.cc#newcode438 gpu/command_buffer/service/context_state.cc:438: if (feature_info_->feature_flags().emulate_primitive_restart_fixed_index) On 2016/03/29 16:30:15, Zhenyao Mo wrote: > ...
4 years, 8 months ago (2016-03-30 01:05:00 UTC) #60
yunchao
On 2016/03/30 01:02:42, Ken Russell wrote: > On 2016/03/29 16:30:15, Zhenyao Mo wrote: > > ...
4 years, 8 months ago (2016-03-30 01:49:07 UTC) #61
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1822643002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1822643002/280001
4 years, 8 months ago (2016-03-30 01:58:52 UTC) #63
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1822643002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1822643002/280001
4 years, 8 months ago (2016-03-30 06:37:11 UTC) #66
yunchao
Thanks for your review, Ken and Zhenyao. Merging now... https://codereview.chromium.org/1822643002/diff/220001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1822643002/diff/220001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode8390 gpu/command_buffer/service/gles2_cmd_decoder.cc:8390: ...
4 years, 8 months ago (2016-03-30 08:25:22 UTC) #68
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1822643002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1822643002/280001
4 years, 8 months ago (2016-03-30 08:25:59 UTC) #71
commit-bot: I haz the power
Committed patchset #14 (id:280001)
4 years, 8 months ago (2016-03-30 08:32:42 UTC) #73
commit-bot: I haz the power
4 years, 8 months ago (2016-03-30 08:34:22 UTC) #75
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/56aae8327a6d2e3fa4863339be9f8abeaea47680
Cr-Commit-Position: refs/heads/master@{#383931}

Powered by Google App Engine
This is Rietveld 408576698