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

Issue 1783763002: [WebGL 2] primitive restart should be always enabled (Closed)

Created:
4 years, 9 months ago by yunchao
Modified:
4 years, 9 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, 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

[WebGL 2] primitive restart should be always enabled This change also fixed bugs in primitiverestart.html in WebGL deqp tests. BUG=594021, 295792 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

Patch Set 1 #

Patch Set 2 : more try #

Patch Set 3 : remove unnecessary code #

Patch Set 4 : clear range_set_ for index buffers #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : primitive restart index is designed only for index buffer #

Patch Set 7 : add a TODO for emulation of primitive restart, will work on it soon #

Total comments: 2

Patch Set 8 : addressed zmo@ and kbr@ and bajones@'s feedback: clear range_set_ as less as possible #

Patch Set 9 : fix build failure on Windows platforms #

Total comments: 3

Patch Set 10 : cache max_value and max_value_primitive_restart_enabled for each range #

Total comments: 1

Patch Set 11 : code rebase #

Patch Set 12 : fix error introduced by code rebase #

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -8 lines) Patch
M gpu/command_buffer/service/buffer_manager.h View 1 2 3 4 5 6 7 8 9 4 chunks +15 lines, -1 line 0 comments Download
M gpu/command_buffer/service/buffer_manager.cc View 1 2 3 4 5 6 7 8 9 5 chunks +63 lines, -7 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 1 chunk +18 lines, -0 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

Messages

Total messages: 23 (12 generated)
yunchao
With this patch and the patch at github( https://github.com/KhronosGroup/WebGL/pull/1546) applied, all tests in primitiverestart.html can ...
4 years, 9 months ago (2016-03-14 17:50:32 UTC) #4
Ken Russell (switch to Gerrit)
Thanks Yunchao, this looks very nice. LGTM, though Mo will need to do the owners ...
4 years, 9 months ago (2016-03-14 18:50:00 UTC) #5
Zhenyao Mo
https://codereview.chromium.org/1783763002/diff/80001/gpu/command_buffer/service/buffer_manager.cc File gpu/command_buffer/service/buffer_manager.cc (right): https://codereview.chromium.org/1783763002/diff/80001/gpu/command_buffer/service/buffer_manager.cc#newcode562 gpu/command_buffer/service/buffer_manager.cc:562: it != buffers_.end(); ++it) { nit: wrong indent https://codereview.chromium.org/1783763002/diff/200001/gpu/command_buffer/service/buffer_manager.cc ...
4 years, 9 months ago (2016-03-15 18:24:38 UTC) #10
yunchao
Thanks for your review and your suggestions, zmo@, kbr@ and bajones@. The code has been ...
4 years, 9 months ago (2016-03-16 16:05:39 UTC) #14
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/1783763002/diff/300001/gpu/command_buffer/service/buffer_manager.cc File gpu/command_buffer/service/buffer_manager.cc (right): https://codereview.chromium.org/1783763002/diff/300001/gpu/command_buffer/service/buffer_manager.cc#newcode242 gpu/command_buffer/service/buffer_manager.cc:242: Range range(offset, count, type); The suggestion is to add ...
4 years, 9 months ago (2016-03-16 16:18:07 UTC) #15
yunchao
Ken, Zhenayo and Brandon, could you have a look at the comments below, and re-review ...
4 years, 9 months ago (2016-03-17 00:19:02 UTC) #16
Zhenyao Mo
https://codereview.chromium.org/1783763002/diff/300001/gpu/command_buffer/service/buffer_manager.cc File gpu/command_buffer/service/buffer_manager.cc (right): https://codereview.chromium.org/1783763002/diff/300001/gpu/command_buffer/service/buffer_manager.cc#newcode242 gpu/command_buffer/service/buffer_manager.cc:242: Range range(offset, count, type); On 2016/03/17 00:19:02, yunchao wrote: ...
4 years, 9 months ago (2016-03-18 20:28:44 UTC) #17
yunchao
On 2016/03/18 20:28:44, Zhenyao Mo wrote: > https://codereview.chromium.org/1783763002/diff/300001/gpu/command_buffer/service/buffer_manager.cc > File gpu/command_buffer/service/buffer_manager.cc (right): > > https://codereview.chromium.org/1783763002/diff/300001/gpu/command_buffer/service/buffer_manager.cc#newcode242 ...
4 years, 9 months ago (2016-03-18 22:56:42 UTC) #18
yunchao
On 2016/03/18 22:56:42, yunchao wrote: > On 2016/03/18 20:28:44, Zhenyao Mo wrote: > > > ...
4 years, 9 months ago (2016-03-18 23:00:05 UTC) #19
Ken Russell (switch to Gerrit)
Yunchao: thanks again for putting together this CL, but looking at it again I think ...
4 years, 9 months ago (2016-03-19 00:06:41 UTC) #20
Ken Russell (switch to Gerrit)
4 years, 9 months ago (2016-03-21 22:23:53 UTC) #23
On 2016/03/19 00:06:41, Ken Russell wrote:
> Yunchao: thanks again for putting together this CL, but looking at it again I
> think there is more than one problem with it. I am putting together another
CL,
> https://codereview.chromium.org/1813163003/ , which implements the idea I
> suggested earlier. Apologies for stepping on your toes, but if you don't mind,
> perhaps we can land that other CL and close this one.

https://codereview.chromium.org/1813163003 is in the commit queue. Marking this
CL as closed.

Powered by Google App Engine
This is Rietveld 408576698