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

Issue 2461973002: [Command buffer] Feedback loop detection between texture and framebuffer attachments

Created:
4 years, 1 month ago by yunchao
Modified:
3 years, 10 months ago
CC:
chromium-reviews, piman+watch_chromium.org, Yang Gu, Kai Ninomiya
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Command buffer] Feedback loop detection between texture and framebuffer attachments should honor drawBuffers API for WebGL 2 and ES3 context. In WebGL 1, the color buffer in fbo should be always COLOR_ATTACHMENT0. In WebGL 2, we can designate any color attachment(s) as color buffer(s) by drawBuffers API. BUG=660844 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 : Feedback loop detection for multiple drawbuffers #

Total comments: 8

Patch Set 2 : Addressed zmo@'s feedback: MRT can be supported in WebGL1 or ES2 by extension #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -9 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 3 chunks +37 lines, -9 lines 0 comments Download

Messages

Total messages: 33 (24 generated)
yunchao
The pr at https://github.com/KhronosGroup/WebGL/pull/2121 will fail in latest Chromium. However, with this patch applied, the ...
4 years, 1 month ago (2016-10-31 13:46:25 UTC) #18
Zhenyao Mo
https://codereview.chromium.org/2461973002/diff/40001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2461973002/diff/40001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode8678 gpu/command_buffer/service/gles2_cmd_decoder.cc:8678: if (feature_info_->IsWebGL1OrES2Context()) { We are able to expose MRT ...
4 years, 1 month ago (2016-10-31 18:03:47 UTC) #21
yunchao
Thanks for your review, Zhenyao. Please see the comments inline. https://codereview.chromium.org/2461973002/diff/40001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2461973002/diff/40001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode8700 ...
4 years, 1 month ago (2016-11-01 15:25:22 UTC) #22
Zhenyao Mo
piman, kbr: do you have any suggestions in this? https://codereview.chromium.org/2461973002/diff/40001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2461973002/diff/40001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode8700 gpu/command_buffer/service/gles2_cmd_decoder.cc:8700: ...
4 years, 1 month ago (2016-11-01 22:55:46 UTC) #24
piman
On Tue, Nov 1, 2016 at 3:55 PM, <zmo@chromium.org> wrote: > piman, kbr: do you ...
4 years, 1 month ago (2016-11-02 02:33:22 UTC) #25
piman
https://codereview.chromium.org/2461973002/diff/40001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2461973002/diff/40001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode8691 gpu/command_buffer/service/gles2_cmd_decoder.cc:8691: for (uint32_t ii = 0; ii < group_->max_draw_buffers(); ++ii) ...
4 years, 1 month ago (2016-11-02 02:33:57 UTC) #26
yunchao
Thanks for your review and your suggestions, zmo@ and piman@. Since the related crbug is ...
4 years, 1 month ago (2016-11-04 15:30:01 UTC) #27
yunchao
I found that ANGLE folks have fixed this bug in ANGLE project. The failed test ...
3 years, 10 months ago (2017-02-15 07:16:19 UTC) #32
Zhenyao Mo
3 years, 10 months ago (2017-02-15 22:54:56 UTC) #33
On 2017/02/15 07:16:19, yunchao wrote:
> I found that ANGLE folks have fixed this bug in ANGLE project. 
> The failed test (rendering-sampling-feedback-loop.html) can pass in Chromium
> with command line option --use-gl=angle --use-passthrough-cmd-decoder.
> So I think it is not necessary to do the feedback loop detection in command
> buffer,
> considering that passthrough command buffer may take effect in near future.
>  
> What do you think, Zhenyao and Ken. If you think it is valuable to going
> forward,
> I can continue to work on this patch. It will not take too much effort.

Sure.  Let's halt this and wait for MANGLE.

Powered by Google App Engine
This is Rietveld 408576698