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

Issue 2161383002: Add check if depth and stencil attachments are same image (Closed)

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

Add check if depth and stencil attachments are same image In GLES3.0 and WebGL2 spec, depth and stencil attachments should be the same image if both attachmets are present, or the status of the framebuffer is GL_FRAMEBFUFER_UNSUPPORTED, but in OpenGL 4.3 spec there is no such restriction. This patch adds the validation in command_buffer and updates the related unittests to meet this restriction. BUG=629735 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/b4b0966ca74a50608dc4e206f220dfff38783c88 Cr-Commit-Position: refs/heads/master@{#407309}

Patch Set 1 #

Patch Set 2 : Add check if depth and stencil attachments are the same image when both attachments are present #

Total comments: 2

Patch Set 3 : Use IsSameAttachment and update related unittests #

Total comments: 7

Patch Set 4 : Fix some issues in unittest #

Patch Set 5 : Add comments on unittest #

Total comments: 3

Patch Set 6 : Change NULL to nullptr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -93 lines) Patch
M gpu/command_buffer/service/framebuffer_manager.cc View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/framebuffer_manager_unittest.cc View 1 2 3 4 5 42 chunks +144 lines, -93 lines 0 comments Download

Messages

Total messages: 44 (26 generated)
Jiawei
PTAL. Thanks!
4 years, 5 months ago (2016-07-20 06:37:05 UTC) #8
Corentin Wallez
On 2016/07/20 at 06:37:05, jiawei.shao wrote: > PTAL. Thanks! LGTM, but you'll still need OWNER's ...
4 years, 5 months ago (2016-07-20 13:37:13 UTC) #10
Zhenyao Mo
+piman https://codereview.chromium.org/2161383002/diff/60001/gpu/command_buffer/service/framebuffer_manager.cc File gpu/command_buffer/service/framebuffer_manager.cc (right): https://codereview.chromium.org/2161383002/diff/60001/gpu/command_buffer/service/framebuffer_manager.cc#newcode683 gpu/command_buffer/service/framebuffer_manager.cc:683: feature_info->context_type() == CONTEXT_TYPE_OPENGLES3) { We probably want to ...
4 years, 5 months ago (2016-07-20 13:46:07 UTC) #12
piman
zmo is right on both counts.
4 years, 5 months ago (2016-07-20 22:56:44 UTC) #13
qiankun
https://codereview.chromium.org/2161383002/diff/80001/AUTHORS File AUTHORS (right): https://codereview.chromium.org/2161383002/diff/80001/AUTHORS#newcode296 AUTHORS:296: Jiawei Shao <jiawei.shao@intel.com> This isn't needed any more. Once ...
4 years, 5 months ago (2016-07-21 09:29:22 UTC) #19
Jiawei
On 2016/07/21 09:29:22, qiankun wrote: > https://codereview.chromium.org/2161383002/diff/80001/AUTHORS > File AUTHORS (right): > > https://codereview.chromium.org/2161383002/diff/80001/AUTHORS#newcode296 > ...
4 years, 5 months ago (2016-07-21 10:47:00 UTC) #20
qiankun
https://codereview.chromium.org/2161383002/diff/80001/gpu/command_buffer/service/framebuffer_manager_unittest.cc File gpu/command_buffer/service/framebuffer_manager_unittest.cc (right): https://codereview.chromium.org/2161383002/diff/80001/gpu/command_buffer/service/framebuffer_manager_unittest.cc#newcode462 gpu/command_buffer/service/framebuffer_manager_unittest.cc:462: EXPECT_EQ(static_cast<GLenum>(GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT), On 2016/07/21 09:29:21, qiankun wrote: > After STENCIL ...
4 years, 5 months ago (2016-07-21 15:21:39 UTC) #21
Jiawei
https://codereview.chromium.org/2161383002/diff/80001/gpu/command_buffer/service/framebuffer_manager_unittest.cc File gpu/command_buffer/service/framebuffer_manager_unittest.cc (right): https://codereview.chromium.org/2161383002/diff/80001/gpu/command_buffer/service/framebuffer_manager_unittest.cc#newcode462 gpu/command_buffer/service/framebuffer_manager_unittest.cc:462: EXPECT_EQ(static_cast<GLenum>(GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT), On 2016/07/21 15:21:39, qiankun wrote: > On 2016/07/21 ...
4 years, 5 months ago (2016-07-22 00:38:55 UTC) #22
qiankun
https://codereview.chromium.org/2161383002/diff/120001/gpu/command_buffer/service/framebuffer_manager_unittest.cc File gpu/command_buffer/service/framebuffer_manager_unittest.cc (right): https://codereview.chromium.org/2161383002/diff/120001/gpu/command_buffer/service/framebuffer_manager_unittest.cc#newcode340 gpu/command_buffer/service/framebuffer_manager_unittest.cc:340: ASSERT_TRUE(renderbuffer4 != NULL); Use nullptr here and other place. ...
4 years, 5 months ago (2016-07-22 08:31:37 UTC) #24
Jiawei
PTAL. Thanks!
4 years, 5 months ago (2016-07-22 12:43:23 UTC) #25
qiankun
Looks good to me. others: please review again. Thanks!
4 years, 5 months ago (2016-07-22 14:39:37 UTC) #26
Zhenyao Mo
lgtm
4 years, 5 months ago (2016-07-22 17:28:43 UTC) #27
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/2161383002/140001
4 years, 5 months ago (2016-07-22 18:47:05 UTC) #34
qiankun
ken: please take another look. If it's Ok, please help to check commit. Thanks!
4 years, 5 months ago (2016-07-22 18:49:52 UTC) #37
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/2161383002/140001
4 years, 5 months ago (2016-07-23 00:00:38 UTC) #39
commit-bot: I haz the power
Committed patchset #6 (id:140001)
4 years, 5 months ago (2016-07-23 00:06:42 UTC) #41
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/b4b0966ca74a50608dc4e206f220dfff38783c88 Cr-Commit-Position: refs/heads/master@{#407309}
4 years, 5 months ago (2016-07-23 00:08:16 UTC) #43
Ken Russell (switch to Gerrit)
4 years, 5 months ago (2016-07-23 01:17:04 UTC) #44
Message was sent while issue was closed.
Sorry for the delay reviewing. LGTM after the fact. It was fine to CQ this
without my review.

Powered by Google App Engine
This is Rietveld 408576698