RESOLVED FIXED 49020
Need to simulate DEPTH_STENCIL in framebufferRenderbuffer / getFramebufferAttachmentParameter
https://bugs.webkit.org/show_bug.cgi?id=49020
Summary Need to simulate DEPTH_STENCIL in framebufferRenderbuffer / getFramebufferAtt...
Zhenyao Mo
Reported 2010-11-04 13:24:40 PDT
Currently if DEPTH_STENCIL_ATTACHMENT is used, we attach to DEPTH_ATTACHMENT and STENCIL_ATTACHMENT in chromium --in-process-webgl and safari port. We need to move this simulation to WebGLRenderingContext level so all ports including chromium command buffer will be covered. Also, generate INVALID_OPERATION in getFramebufferAttachmentParameter if attachments conflict is detected (otherwise, for example, if query DEPTH_ATTACHMENT, DEPTH_STENCIL_ATTACHMENT might be turned).
Attachments
patch (12.32 KB, patch)
2010-11-04 17:43 PDT, Zhenyao Mo
kbr: review-
zmo: commit-queue-
revised patch: responding to kbr's review (13.06 KB, patch)
2010-11-04 18:15 PDT, Zhenyao Mo
zmo: review-
zmo: commit-queue-
revised patch: updated the change log (13.16 KB, patch)
2010-11-04 18:18 PDT, Zhenyao Mo
kbr: review+
zmo: commit-queue-
Zhenyao Mo
Comment 1 2010-11-04 17:43:58 PDT
Created attachment 73017 [details] patch Per discussion with Gregg, we do the enum mapping at WebGLRenderingContext level instead of in command buffer (and other lower-level ports). Tested in Chrome command buffer, Chrome in-process-webgl, and Safari, all three ports.
Kenneth Russell
Comment 2 2010-11-04 17:56:21 PDT
Comment on attachment 73017 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=73017&action=review Generally looks good. It would be nicer to reduce duplication in the re-attachment code but I can't think of a more terse way to express it. One issue requiring a revision. > WebCore/html/canvas/WebGLRenderingContext.cpp:2294 > + 0x88F0, // GL_DEPTH24_STENCIL8 This enum should be added to Extensions3D.h and the documentation for that class updated to indicate that it supports GL_OES_packed_depth_stencil and GL_EXT_packed_depth_stencil.
Zhenyao Mo
Comment 3 2010-11-04 18:15:51 PDT
Created attachment 73021 [details] revised patch: responding to kbr's review
Zhenyao Mo
Comment 4 2010-11-04 18:18:46 PDT
Created attachment 73023 [details] revised patch: updated the change log
Kenneth Russell
Comment 5 2010-11-05 12:07:54 PDT
Comment on attachment 73023 [details] revised patch: updated the change log Great. Thanks for taking care of this.
Zhenyao Mo
Comment 6 2010-11-05 13:29:10 PDT
Note You need to log in before you can comment on or make changes to this bug.