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

Issue 2372953002: Move special DEPTH_STENCIL attachment logic from command buffers to WebGL1 (Closed)

Created:
4 years, 2 months ago by piman
Modified:
4 years, 2 months ago
CC:
chromium-reviews, blink-reviews, piman+watch_chromium.org, haraken, qiankun, yunchao
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move special DEPTH_STENCIL attachment logic from command buffers to WebGL1 GL_DEPTH_STENCIL_ATTACHMENT is not a real attachment in ES3, but instead is translated to separate DEPTH and STENCIL attachment. However, WebGL1 has a concept of a separate DEPTH_STENCIL attachment that is mutually exclusive with DEPTH and STENCIL attachments. This CL moves the logic that tracks the separate DEPTH_STENCIL attachment to the WebGL side, so that the ES3 implementation can consistently track which attachment is active, in accordance to ES3 rules. BUG=630568 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

Patch Set 1 #

Patch Set 2 : fix tests #

Patch Set 3 : add more tests #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+360 lines, -298 lines) Patch
M gpu/command_buffer/common/gles2_cmd_utils.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/context_group.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/framebuffer_manager.h View 5 chunks +0 lines, -12 lines 0 comments Download
M gpu/command_buffer/service/framebuffer_manager.cc View 1 15 chunks +38 lines, -71 lines 1 comment Download
M gpu/command_buffer/service/framebuffer_manager_unittest.cc View 9 chunks +6 lines, -13 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 9 chunks +47 lines, -32 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc View 1 chunk +9 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_framebuffers.cc View 1 2 9 chunks +80 lines, -38 lines 0 comments Download
M gpu/command_buffer/service/texture_manager_unittest.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp View 1 chunk +1 line, -14 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.h View 3 chunks +8 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.cpp View 1 5 chunks +164 lines, -77 lines 1 comment Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 2 chunks +2 lines, -24 lines 0 comments Download

Messages

Total messages: 30 (19 generated)
piman
LMK what you think of the approach. I /think/ it's overall simpler...
4 years, 2 months ago (2016-09-27 02:31:12 UTC) #6
Ken Russell (switch to Gerrit)
Antoine, thank you for putting this together. It looks perfect and is a significant simplification ...
4 years, 2 months ago (2016-09-29 03:07:43 UTC) #16
Zhenyao Mo
On 2016/09/29 03:07:43, Ken Russell wrote: > Antoine, thank you for putting this together. It ...
4 years, 2 months ago (2016-09-30 20:59:22 UTC) #17
Ken Russell (switch to Gerrit)
On 2016/09/30 20:59:22, Zhenyao Mo wrote: > On 2016/09/29 03:07:43, Ken Russell wrote: > > ...
4 years, 2 months ago (2016-10-04 01:26:22 UTC) #18
Zhenyao Mo
Thanks for clarifying. Yes, in WebGL1, we don't have a depth/stencil related state that could ...
4 years, 2 months ago (2016-10-04 01:30:44 UTC) #19
Ken Russell (switch to Gerrit)
Let's see whether the CQ will apply this patch at this point. It applied cleanly ...
4 years, 2 months ago (2016-10-04 02:21:53 UTC) #20
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/2372953002/40001
4 years, 2 months ago (2016-10-04 02:22:31 UTC) #22
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/153322)
4 years, 2 months ago (2016-10-04 04:09:25 UTC) #24
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/2372953002/40001
4 years, 2 months ago (2016-10-04 21:00:57 UTC) #26
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/153971)
4 years, 2 months ago (2016-10-04 21:08:58 UTC) #28
Ken Russell (switch to Gerrit)
4 years, 2 months ago (2016-10-05 00:42:13 UTC) #29
Very sorry for taking so long to get to this. I couldn't upload modifications to
this CL so am landing it in https://codereview.chromium.org/2389363002/ .

Powered by Google App Engine
This is Rietveld 408576698