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 2148723004: WebGL 2: make sure VertexAttrib type match the corresponding attrib type in shader (Closed)

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

Description

WebGL 2: make sure VertexAttrib type match the corresponding attrib type in shader. Fix bugs in attrib-type-match.html BUG=628459 TEST=conformance2/rendering/attrib-type-match.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/c487531682715938285a34298659c53c84cd8ca6 Cr-Commit-Position: refs/heads/master@{#407168}

Patch Set 1 #

Patch Set 2 : add matrix type, and coding style change #

Patch Set 3 : set real_stride to non-zero to pass the DCHECK #

Patch Set 4 : Fix a bug: some attributes in shader may be no API to feed data #

Patch Set 5 : Set correct data for 'size' in attribInfo, although it is meaningless for this CL #

Patch Set 6 : Fix a bug introduced by my CL which checks the buffer binding for vertexAttrib1234f and fails #

Patch Set 7 : small change to size #

Patch Set 8 : A simpler implementation without unused info stored in VertexAttrib::VertexAttrib into Ver… #

Total comments: 6

Patch Set 9 : addressed zmo@'s feedback #

Patch Set 10 : coding style #

Total comments: 1

Patch Set 11 : addressed zmo@'s feedback #

Patch Set 12 : update vertex attrib base type for vertexAttrib{I}Pointer only if the vertex attrib array is enabled #

Total comments: 21

Patch Set 13 : code rebase + webgl2 identifier update + log #

Patch Set 14 : fix the bug in Windows gpu bot #

Total comments: 14

Patch Set 15 : addressed zmo@'s and kbr@'s feedbacks #

Patch Set 16 : Fixed bots fail, addressed zmo's feedback: It's not a must to enableVertexArray before vertexAttribPointer #

Patch Set 17 : addressed zmo@'s feedback: uint/int type in shader w/o data feed by vertexAttrib API is invalid, fo… #

Patch Set 18 : still limit the max_vertex_attribs to 16 to fix gpu_unittests failures #

Patch Set 19 : apply zmo's suggestion #

Patch Set 20 : More fixes #

Patch Set 21 : fix bugs #

Patch Set 22 : more fixes #

Patch Set 23 : Fix bug: builtin variables don't need to check the type match if no vertexAttrib API to … #

Patch Set 24 : code clean #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+248 lines, -2 lines) Patch
M gpu/command_buffer/service/context_group.cc 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/context_state.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 2 chunks +31 lines, -0 lines 2 comments Download
M gpu/command_buffer/service/context_state.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 1 chunk +4 lines, -0 lines 2 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 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 1 chunk +15 lines, -0 lines 1 comment 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 16 chunks +72 lines, -0 lines 4 comments Download
M gpu/command_buffer/service/program_manager.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 6 chunks +28 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/program_manager.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 7 chunks +43 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/program_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +3 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/vertex_attrib_manager.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 2 chunks +31 lines, -0 lines 1 comment Download
M gpu/command_buffer/service/vertex_attrib_manager.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 2 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 106 (69 generated)
yunchao
Still WIP, has not checked yet. Just FYI to avoid duplicated work.
4 years, 5 months ago (2016-07-14 15:44:35 UTC) #5
Zhenyao Mo
On 2016/07/14 15:44:35, yunchao wrote: > Still WIP, has not checked yet. Just FYI to ...
4 years, 5 months ago (2016-07-14 17:36:26 UTC) #6
yunchao
On 2016/07/14 17:36:26, Zhenyao Mo wrote: > On 2016/07/14 15:44:35, yunchao wrote: > > Still ...
4 years, 5 months ago (2016-07-15 01:30:05 UTC) #9
Zhenyao Mo
On 2016/07/15 01:30:05, yunchao wrote: > On 2016/07/14 17:36:26, Zhenyao Mo wrote: > > On ...
4 years, 5 months ago (2016-07-15 01:35:30 UTC) #10
yunchao
On 2016/07/15 01:35:30, Zhenyao Mo wrote: > On 2016/07/15 01:30:05, yunchao wrote: > > On ...
4 years, 5 months ago (2016-07-15 01:58:52 UTC) #11
yunchao
Hi Zhenyao and Ken, If the shader has a variable vec3. For instance float vec3 ...
4 years, 5 months ago (2016-07-15 17:05:03 UTC) #12
Zhenyao Mo
On 2016/07/15 17:05:03, yunchao wrote: > Hi Zhenyao and Ken, If the shader has a ...
4 years, 5 months ago (2016-07-15 17:21:16 UTC) #13
yunchao
On 2016/07/15 17:21:16, Zhenyao Mo wrote: > On 2016/07/15 17:05:03, yunchao wrote: > > Hi ...
4 years, 5 months ago (2016-07-15 17:35:52 UTC) #14
yunchao
Zhenyao and Ken, a couple of test cases in gles2_conform_test failed. But I can not ...
4 years, 5 months ago (2016-07-19 03:00:24 UTC) #15
Zhenyao Mo
On 2016/07/19 03:00:24, yunchao wrote: > Zhenyao and Ken, a couple of test cases in ...
4 years, 5 months ago (2016-07-19 03:06:47 UTC) #16
yunchao
On 2016/07/19 03:06:47, Zhenyao Mo wrote: > On 2016/07/19 03:00:24, yunchao wrote: > > Zhenyao ...
4 years, 5 months ago (2016-07-19 03:11:32 UTC) #17
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-19 06:21:05 UTC) #20
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-19 16:27:11 UTC) #25
yunchao
On 2016/07/19 03:06:47, Zhenyao Mo wrote: > On 2016/07/19 03:00:24, yunchao wrote: > > Zhenyao ...
4 years, 5 months ago (2016-07-19 16:31:49 UTC) #26
Zhenyao Mo
On 2016/07/19 16:31:49, yunchao wrote: > On 2016/07/19 03:06:47, Zhenyao Mo wrote: > > On ...
4 years, 5 months ago (2016-07-19 16:43:36 UTC) #29
Zhenyao Mo
Yunchao, I took more serious look and find you have some misunderstandings in the vertex ...
4 years, 5 months ago (2016-07-19 20:23:34 UTC) #30
yunchao
Zhenyao and Ken, I have updated the code. PTAL. This CL also pending on https://github.com/KhronosGroup/WebGL/pull/1928.But ...
4 years, 5 months ago (2016-07-20 15:14:30 UTC) #32
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-20 15:47:35 UTC) #35
Zhenyao Mo
+piman for a second pair of eyes. yunchao, you are getting close, but some extra ...
4 years, 5 months ago (2016-07-20 17:54:57 UTC) #41
Ken Russell (switch to Gerrit)
I defer to Mo's review, but one comment. Thanks for moving this forward. https://codereview.chromium.org/2148723004/diff/260001/gpu/command_buffer/service/feature_info.cc File ...
4 years, 5 months ago (2016-07-21 00:16:21 UTC) #42
yunchao
@zmo (and @kbr and @piman), could you have a look at the comments inline. Thanks ...
4 years, 5 months ago (2016-07-21 06:15:27 UTC) #43
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-21 10:24:22 UTC) #49
Zhenyao Mo
On 2016/07/21 06:15:27, yunchao wrote: > @zmo (and @kbr and @piman), could you have a ...
4 years, 5 months ago (2016-07-21 12:46:52 UTC) #52
yunchao
On 2016/07/21 12:46:52, Zhenyao Mo wrote: > On 2016/07/21 06:15:27, yunchao wrote: > > @zmo ...
4 years, 5 months ago (2016-07-21 13:05:45 UTC) #53
Zhenyao Mo
https://codereview.chromium.org/2148723004/diff/360001/gpu/command_buffer/service/context_state.h File gpu/command_buffer/service/context_state.h (right): https://codereview.chromium.org/2148723004/diff/360001/gpu/command_buffer/service/context_state.h#newcode342 gpu/command_buffer/service/context_state.h:342: uint32_t generic_attrib_base_type_; You didn't address the issue of attribs ...
4 years, 5 months ago (2016-07-21 13:10:47 UTC) #54
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-21 13:58:53 UTC) #57
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-21 14:24:12 UTC) #62
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-21 15:45:00 UTC) #67
qiankun
On 2016/07/21 15:45:00, commit-bot: I haz the power wrote: > Your CL relies on deprecated ...
4 years, 5 months ago (2016-07-21 16:07:54 UTC) #68
yunchao
Zhenyao and Ken, could you have another look? I think the code is OK now. ...
4 years, 5 months ago (2016-07-22 13:43:54 UTC) #96
yunchao
On 2016/07/21 16:07:54, qiankun wrote: > On 2016/07/21 15:45:00, commit-bot: I haz the power wrote: ...
4 years, 5 months ago (2016-07-22 13:44:33 UTC) #97
Zhenyao Mo
https://codereview.chromium.org/2148723004/diff/560001/gpu/command_buffer/service/context_state.cc File gpu/command_buffer/service/context_state.cc (right): https://codereview.chromium.org/2148723004/diff/560001/gpu/command_buffer/service/context_state.cc#newcode227 gpu/command_buffer/service/context_state.cc:227: max_vertex_attribs_ = 0; This should go to the initialization ...
4 years, 5 months ago (2016-07-22 14:36:47 UTC) #98
Zhenyao Mo
lgtm with nits. Let's land this now and I'll fix the nits. https://codereview.chromium.org/2148723004/diff/560001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc ...
4 years, 5 months ago (2016-07-22 16:05:43 UTC) #99
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/2148723004/560001
4 years, 5 months ago (2016-07-22 16:06:21 UTC) #101
commit-bot: I haz the power
Committed patchset #24 (id:560001)
4 years, 5 months ago (2016-07-22 16:12:19 UTC) #103
yunchao
On 2016/07/22 16:05:43, Zhenyao Mo wrote: > lgtm with nits. Let's land this now and ...
4 years, 5 months ago (2016-07-22 16:13:19 UTC) #104
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 16:14:16 UTC) #106
Message was sent while issue was closed.
Patchset 24 (id:??) landed as
https://crrev.com/c487531682715938285a34298659c53c84cd8ca6
Cr-Commit-Position: refs/heads/master@{#407168}

Powered by Google App Engine
This is Rietveld 408576698