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

Issue 1387143003: Add missing break in switch-case statements in gles2_cmd_decoder (Closed)

Created:
5 years, 2 months ago by r.kasibhatla
Modified:
5 years, 1 month ago
CC:
asanka, benjhayden+dwatch_chromium.org, 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 missing break in switch-case statements in gles2_cmd_decoder GL_STENCIL_BUFFER_BIT bit is enabled whenever GL_DEPTH_EXT attachment is requested on backbuffer_needs_clear_bits_ in DoDiscardFramebufferEXT() - irrespective of whether GL_STENCIL_EXT attachment is actually requested or not. BUG=None TEST=gpu_unittests --gtest_filter=*GLES2DecoderManualInitTest.ClearBackbufferBitsOnDiscardFramebufferEXT* Committed: https://crrev.com/411eecbfe40524f5f62dee1662cde665d12dfaf9 Cr-Commit-Position: refs/heads/master@{#359838}

Patch Set 1 #

Patch Set 2 : Added unit test for checking clearing of backbuffer bits! #

Total comments: 4

Patch Set 3 : Reworked as per comments! #

Patch Set 4 : #

Patch Set 5 : Rebased to ToT! #

Total comments: 3

Patch Set 6 : Patch for landing after addressing nits! #

Patch Set 7 : Changes to go through the clang compiler error! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -0 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 6 4 chunks +13 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_framebuffers.cc View 1 2 3 4 5 1 chunk +60 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (15 generated)
RaviKasibhatla
PTAL. I noticed that there is no separate unittest for clearing the bits of GL_COLOR_BUFFER_BIT, ...
5 years, 2 months ago (2015-10-06 09:48:19 UTC) #3
Sami
Wow, good find. If it's not too much trouble I'd suggest splitting the unit test ...
5 years, 2 months ago (2015-10-06 15:13:01 UTC) #4
Zhenyao Mo
On 2015/10/06 15:13:01, Sami wrote: > Wow, good find. If it's not too much trouble ...
5 years, 2 months ago (2015-10-06 20:58:59 UTC) #5
RaviKasibhatla
On 2015/10/06 20:58:59, Zhenyao Mo wrote: > On 2015/10/06 15:13:01, Sami wrote: > > Wow, ...
5 years, 2 months ago (2015-10-09 13:29:09 UTC) #6
Sami
On 2015/10/09 13:29:09, RaviKasibhatla wrote: > DiscardFramebufferEXT unit test uses only GL_COLOR_EXT attachment value. > ...
5 years, 2 months ago (2015-10-12 10:59:23 UTC) #7
RaviKasibhatla
On 2015/10/12 10:59:23, Sami wrote: > On 2015/10/09 13:29:09, RaviKasibhatla wrote: > > DiscardFramebufferEXT unit ...
5 years, 2 months ago (2015-10-12 11:28:07 UTC) #8
Sami
On 2015/10/12 11:28:07, RaviKasibhatla wrote: > The clear bits mask variable "backbuffer_needs_clear_bits_" is updated inside ...
5 years, 2 months ago (2015-10-12 11:33:03 UTC) #9
RaviKasibhatla
On 2015/10/12 11:33:03, Sami wrote: > On 2015/10/12 11:28:07, RaviKasibhatla wrote: > > The clear ...
5 years, 1 month ago (2015-10-30 07:41:10 UTC) #10
RaviKasibhatla
On 2015/10/30 07:41:10, RaviKasibhatla wrote: > On 2015/10/12 11:33:03, Sami wrote: > > On 2015/10/12 ...
5 years, 1 month ago (2015-11-04 04:10:20 UTC) #11
Sami
Thanks for adding the test. I think the patch looks good -- just a few ...
5 years, 1 month ago (2015-11-04 11:55:53 UTC) #12
RaviKasibhatla
Thanks for the comments. I have updated the patch as per your comments. PTAL. https://codereview.chromium.org/1387143003/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.h ...
5 years, 1 month ago (2015-11-04 14:59:40 UTC) #13
Sami
Thanks, non-owner l-g-t-m.
5 years, 1 month ago (2015-11-04 15:36:24 UTC) #14
RaviKasibhatla
On 2015/11/04 15:36:24, Sami wrote: > Thanks, non-owner l-g-t-m. @zmo: Any comments?
5 years, 1 month ago (2015-11-06 04:04:00 UTC) #17
r.kasibhatla
On 2015/11/06 at 04:04:00, kphanee wrote: > On 2015/11/04 15:36:24, Sami wrote: > > Thanks, ...
5 years, 1 month ago (2015-11-10 19:03:21 UTC) #18
Sami
+kbr@ in case zmo@ is out.
5 years, 1 month ago (2015-11-11 19:04:03 UTC) #20
Ken Russell (switch to Gerrit)
Good catch and nice test. This LGTM but I'm not an OWNER. CC'ing bajones, piman ...
5 years, 1 month ago (2015-11-11 19:20:57 UTC) #22
bajones
On 2015/11/11 19:20:57, Ken Russell wrote: > Good catch and nice test. This LGTM but ...
5 years, 1 month ago (2015-11-11 19:50:14 UTC) #23
vmiura
Nice! Could you please split the two fixes into separate CLs? https://codereview.chromium.org/1387143003/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): ...
5 years, 1 month ago (2015-11-11 19:51:21 UTC) #24
r.kasibhatla
On 2015/11/11 at 19:51:21, vmiura wrote: > Nice! Could you please split the two fixes ...
5 years, 1 month ago (2015-11-11 20:09:05 UTC) #25
r.kasibhatla
https://codereview.chromium.org/1387143003/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1387143003/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode896 gpu/command_buffer/service/gles2_cmd_decoder.cc:896: int32 GetAndClearBackbufferClearBitsForTest() override; On 2015/11/11 at 19:51:21, vmiura wrote: ...
5 years, 1 month ago (2015-11-11 20:13:21 UTC) #26
piman
LGTM after comment addressed. https://codereview.chromium.org/1387143003/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1387143003/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode896 gpu/command_buffer/service/gles2_cmd_decoder.cc:896: int32 GetAndClearBackbufferClearBitsForTest() override; On 2015/11/11 ...
5 years, 1 month ago (2015-11-11 22:54:43 UTC) #27
Zhenyao Mo
LGTM after cooment addressed. Thanks for catching the bugs.
5 years, 1 month ago (2015-11-12 09:08:14 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1387143003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1387143003/100001
5 years, 1 month ago (2015-11-16 11:56:58 UTC) #33
RaviKasibhatla
On 2015/11/12 09:08:14, Zhenyao Mo wrote: > LGTM after cooment addressed. > > Thanks for ...
5 years, 1 month ago (2015-11-16 11:58:58 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/141034)
5 years, 1 month ago (2015-11-16 12:07:34 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1387143003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1387143003/120001
5 years, 1 month ago (2015-11-16 13:45:50 UTC) #38
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-16 14:53:48 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1387143003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1387143003/120001
5 years, 1 month ago (2015-11-16 14:54:23 UTC) #43
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 1 month ago (2015-11-16 14:58:31 UTC) #44
commit-bot: I haz the power
5 years, 1 month ago (2015-11-16 14:59:14 UTC) #45
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/411eecbfe40524f5f62dee1662cde665d12dfaf9
Cr-Commit-Position: refs/heads/master@{#359838}

Powered by Google App Engine
This is Rietveld 408576698