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

Issue 1708983002: Command buffer: Fix bugs for drawing when the type of vertex attrib is a packed type (Closed)

Created:
4 years, 10 months ago by yunchao
Modified:
4 years, 10 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

Command buffer: Fix bugs for drawing when the type of vertex attrib is a packed type. This small change fixed bugs in draw.html and vertexarrays.html in WebGL deqp for GL_INT_2_10_10_10_REV and GL_UNSIGNED_INT_2_10_10_10_REV. BUG=295792 TESTS=deqp/functional/gles3/draw.html, deqp/functional/gles3/vertexarrays.html CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/6dc5f17704d3b1465ab48f25a11b7c9979892df3 Cr-Commit-Position: refs/heads/master@{#377836}

Patch Set 1 #

Patch Set 2 : #

Total comments: 9

Patch Set 3 : addressed kbr@'s feedback: add some comments to explain the logic #

Total comments: 2

Patch Set 4 : addressed zmo@'s feedback #

Total comments: 2

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -24 lines) Patch
M gpu/command_buffer/client/vertex_array_object_manager.cc View 1 2 3 3 chunks +3 lines, -6 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_utils.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M gpu/command_buffer/common/gles2_cmd_utils.cc View 1 2 3 4 2 chunks +10 lines, -1 line 0 comments Download
M gpu/command_buffer/service/buffer_manager.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 chunks +14 lines, -14 lines 0 comments Download
M gpu/command_buffer/service/vertex_attrib_manager.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 39 (19 generated)
yunchao
PTAL. Thanks a lot! https://codereview.chromium.org/1708983002/diff/40001/gpu/command_buffer/common/gles2_cmd_utils.cc File gpu/command_buffer/common/gles2_cmd_utils.cc (right): https://codereview.chromium.org/1708983002/diff/40001/gpu/command_buffer/common/gles2_cmd_utils.cc#newcode821 gpu/command_buffer/common/gles2_cmd_utils.cc:821: return sizeof(GLuint) / 4; // ...
4 years, 10 months ago (2016-02-18 14:47:56 UTC) #12
yunchao
https://codereview.chromium.org/1708983002/diff/40001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1708983002/diff/40001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode8934 gpu/command_buffer/service/gles2_cmd_decoder.cc:8934: if (stride & (data_size - 1)) { The offset ...
4 years, 10 months ago (2016-02-18 14:55:31 UTC) #13
qiankun
https://codereview.chromium.org/1708983002/diff/40001/gpu/command_buffer/common/gles2_cmd_utils.cc File gpu/command_buffer/common/gles2_cmd_utils.cc (right): https://codereview.chromium.org/1708983002/diff/40001/gpu/command_buffer/common/gles2_cmd_utils.cc#newcode821 gpu/command_buffer/common/gles2_cmd_utils.cc:821: return sizeof(GLuint) / 4; // NOLINT On 2016/02/18 14:47:55, ...
4 years, 10 months ago (2016-02-18 15:42:10 UTC) #14
Zhenyao Mo
https://codereview.chromium.org/1708983002/diff/40001/gpu/command_buffer/common/gles2_cmd_utils.cc File gpu/command_buffer/common/gles2_cmd_utils.cc (right): https://codereview.chromium.org/1708983002/diff/40001/gpu/command_buffer/common/gles2_cmd_utils.cc#newcode821 gpu/command_buffer/common/gles2_cmd_utils.cc:821: return sizeof(GLuint) / 4; // NOLINT On 2016/02/18 15:42:10, ...
4 years, 10 months ago (2016-02-18 17:39:50 UTC) #15
yunchao
Thanks for your review, please see my comments inline. https://codereview.chromium.org/1708983002/diff/40001/gpu/command_buffer/common/gles2_cmd_utils.cc File gpu/command_buffer/common/gles2_cmd_utils.cc (right): https://codereview.chromium.org/1708983002/diff/40001/gpu/command_buffer/common/gles2_cmd_utils.cc#newcode821 gpu/command_buffer/common/gles2_cmd_utils.cc:821: ...
4 years, 10 months ago (2016-02-19 00:03:10 UTC) #16
yunchao
See more explanation inline. In fact, I have already tried the other solution as you ...
4 years, 10 months ago (2016-02-19 00:34:31 UTC) #17
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/1708983002/diff/40001/gpu/command_buffer/common/gles2_cmd_utils.cc File gpu/command_buffer/common/gles2_cmd_utils.cc (right): https://codereview.chromium.org/1708983002/diff/40001/gpu/command_buffer/common/gles2_cmd_utils.cc#newcode821 gpu/command_buffer/common/gles2_cmd_utils.cc:821: return sizeof(GLuint) / 4; // NOLINT On 2016/02/19 00:34:31, ...
4 years, 10 months ago (2016-02-19 18:54:51 UTC) #18
yunchao
On 2016/02/19 18:54:51, Ken Russell wrote: > https://codereview.chromium.org/1708983002/diff/40001/gpu/command_buffer/common/gles2_cmd_utils.cc > File gpu/command_buffer/common/gles2_cmd_utils.cc (right): > > https://codereview.chromium.org/1708983002/diff/40001/gpu/command_buffer/common/gles2_cmd_utils.cc#newcode821 ...
4 years, 10 months ago (2016-02-23 02:47:54 UTC) #19
yunchao
On 2016/02/18 17:39:50, Zhenyao Mo wrote: > https://codereview.chromium.org/1708983002/diff/40001/gpu/command_buffer/common/gles2_cmd_utils.cc > File gpu/command_buffer/common/gles2_cmd_utils.cc (right): > > https://codereview.chromium.org/1708983002/diff/40001/gpu/command_buffer/common/gles2_cmd_utils.cc#newcode821 ...
4 years, 10 months ago (2016-02-23 03:01:03 UTC) #20
Ken Russell (switch to Gerrit)
On 2016/02/23 02:47:54, yunchao wrote: > On 2016/02/19 18:54:51, Ken Russell wrote: > > > ...
4 years, 10 months ago (2016-02-23 22:55:52 UTC) #21
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/1708983002/diff/40001/gpu/command_buffer/common/gles2_cmd_utils.cc File gpu/command_buffer/common/gles2_cmd_utils.cc (right): https://codereview.chromium.org/1708983002/diff/40001/gpu/command_buffer/common/gles2_cmd_utils.cc#newcode821 gpu/command_buffer/common/gles2_cmd_utils.cc:821: return sizeof(GLuint) / 4; // NOLINT On 2016/02/19 18:54:51, ...
4 years, 10 months ago (2016-02-23 22:56:00 UTC) #22
yunchao
Could you have a look, zmo@ and piman@. Thanks! https://codereview.chromium.org/1708983002/diff/40001/gpu/command_buffer/common/gles2_cmd_utils.cc File gpu/command_buffer/common/gles2_cmd_utils.cc (right): https://codereview.chromium.org/1708983002/diff/40001/gpu/command_buffer/common/gles2_cmd_utils.cc#newcode821 gpu/command_buffer/common/gles2_cmd_utils.cc:821: ...
4 years, 10 months ago (2016-02-25 15:29:41 UTC) #24
Zhenyao Mo
Sorry for the delay. https://codereview.chromium.org/1708983002/diff/80001/gpu/command_buffer/common/gles2_cmd_utils.cc File gpu/command_buffer/common/gles2_cmd_utils.cc (right): https://codereview.chromium.org/1708983002/diff/80001/gpu/command_buffer/common/gles2_cmd_utils.cc#newcode825 gpu/command_buffer/common/gles2_cmd_utils.cc:825: return sizeof(GLint) / 4; // ...
4 years, 10 months ago (2016-02-25 21:40:44 UTC) #25
Zhenyao Mo
lgtm if bots are happy https://codereview.chromium.org/1708983002/diff/100001/gpu/command_buffer/common/gles2_cmd_utils.cc File gpu/command_buffer/common/gles2_cmd_utils.cc (right): https://codereview.chromium.org/1708983002/diff/100001/gpu/command_buffer/common/gles2_cmd_utils.cc#newcode831 gpu/command_buffer/common/gles2_cmd_utils.cc:831: return type_size; nit: please ...
4 years, 10 months ago (2016-02-26 04:24:29 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1708983002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1708983002/120001
4 years, 10 months ago (2016-02-26 04:45:31 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-26 06:10:12 UTC) #30
yunchao
Thanks for your careful review, Zhenyao and Ken. Merging now... https://codereview.chromium.org/1708983002/diff/80001/gpu/command_buffer/common/gles2_cmd_utils.cc File gpu/command_buffer/common/gles2_cmd_utils.cc (right): https://codereview.chromium.org/1708983002/diff/80001/gpu/command_buffer/common/gles2_cmd_utils.cc#newcode825 ...
4 years, 10 months ago (2016-02-26 06:45:26 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1708983002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1708983002/120001
4 years, 10 months ago (2016-02-26 06:47:36 UTC) #34
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 10 months ago (2016-02-26 06:55:52 UTC) #36
commit-bot: I haz the power
4 years, 10 months ago (2016-02-26 06:57:23 UTC) #38
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/6dc5f17704d3b1465ab48f25a11b7c9979892df3
Cr-Commit-Position: refs/heads/master@{#377836}

Powered by Google App Engine
This is Rietveld 408576698