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

Issue 2583183002: gles2: Fix glDiscardFramebufferEXT (Closed)

Created:
4 years ago by jbriance
Modified:
4 years ago
Reviewers:
Zhenyao Mo, vmiura, jbauman
CC:
chromium-reviews, piman+watch_chromium.org, Jiawei, qiankun
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

gles2: Fix glDiscardFramebufferEXT Using GL_DEPTH_STENCIL_ATTACHMENT in GL_EXT_discard_framebuffer results in a INVALID_ENUM gl error. Hence, we must prevent InvalidateFramebufferImpl to generate such an attachment in this case. BUG=none 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/b6837bf991e626fc525a50e0955c759b403cbcf3 Cr-Commit-Position: refs/heads/master@{#439741}

Patch Set 1 #

Patch Set 2 : Provide a better implementation #

Total comments: 2

Patch Set 3 : Address CL comment #

Total comments: 2

Patch Set 4 : Address 3rd patch set's comment #

Patch Set 5 : Update unit test accordingly #

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

Messages

Total messages: 27 (15 generated)
jbriance
4 years ago (2016-12-19 13:52:21 UTC) #3
jbriance
4 years ago (2016-12-19 14:19:05 UTC) #4
Zhenyao Mo
https://codereview.chromium.org/2583183002/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2583183002/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode5967 gpu/command_buffer/service/gles2_cmd_decoder.cc:5967: validated_attachments[validated_count++] = GL_STENCIL_ATTACHMENT; It's easier to always split to ...
4 years ago (2016-12-19 17:53:48 UTC) #7
jbriance
https://codereview.chromium.org/2583183002/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2583183002/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode5967 gpu/command_buffer/service/gles2_cmd_decoder.cc:5967: validated_attachments[validated_count++] = GL_STENCIL_ATTACHMENT; On 2016/12/19 17:53:48, Zhenyao Mo wrote: ...
4 years ago (2016-12-19 19:40:45 UTC) #8
Zhenyao Mo
lgtm
4 years ago (2016-12-19 21:48:22 UTC) #9
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/2583183002/40001
4 years ago (2016-12-19 21:56:45 UTC) #11
jbauman
Do you know if MarkAttachmentAsCleared works if a texture was attached to DEPTH_STENCIL_ATTACHMENT but DEPTH_ATTACHMENT ...
4 years ago (2016-12-19 22:08:58 UTC) #13
jbriance
On 2016/12/19 22:08:58, jbauman wrote: > Do you know if MarkAttachmentAsCleared works if a texture ...
4 years ago (2016-12-19 22:45:17 UTC) #14
jbauman
lgtm. Based on the unit test you modified MarkAttachmentAsCleared should work in this case. On ...
4 years ago (2016-12-20 00:36:54 UTC) #17
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/2583183002/80001
4 years ago (2016-12-20 07:00:58 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-20 07:54:04 UTC) #25
commit-bot: I haz the power
4 years ago (2016-12-20 07:57:51 UTC) #27
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b6837bf991e626fc525a50e0955c759b403cbcf3
Cr-Commit-Position: refs/heads/master@{#439741}

Powered by Google App Engine
This is Rietveld 408576698