RESOLVED FIXED 243160
[GraphicsContextGLTextureMapperANGLE][WebGL2] webgl/2.0.0/conformance2/query/occlusion-query.html is failing
https://bugs.webkit.org/show_bug.cgi?id=243160
Summary [GraphicsContextGLTextureMapperANGLE][WebGL2] webgl/2.0.0/conformance2/query/...
Fujii Hironori
Reported 2022-07-24 18:10:27 PDT
[GraphicsContextGLTextureMapperANGLE][WebGL2] webgl/2.0.0/conformance2/query/occlusion-query.html is failing
Attachments
Patch (3.02 KB, patch)
2022-07-24 18:14 PDT, Fujii Hironori
no flags
Fujii Hironori
Comment 1 2022-07-24 18:14:09 PDT
Fujii Hironori
Comment 2 2022-07-24 18:20:12 PDT
bug#219486 added GL_EXT_occlusion_query_boolean to GraphicsContextGLCocoa::platformInitialize.
Kenneth Russell
Comment 3 2022-07-25 10:27:10 PDT
Comment on attachment 461183 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=461183&action=review > Source/WebCore/platform/graphics/texmap/GraphicsContextGLTextureMapperANGLE.cpp:273 > + requiredExtensions.append("GL_EXT_occlusion_query_boolean"_s); Occlusion queries are part of the core OpenGL ES 3.0 spec, so it should not be necessary to require this extension in that mode. Is this class properly requesting a WebGL 2.0 compatible context from ANGLE when WebGL 2.0 is enabled?
Fujii Hironori
Comment 4 2022-07-25 14:19:36 PDT
Comment on attachment 461183 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=461183&action=review >> Source/WebCore/platform/graphics/texmap/GraphicsContextGLTextureMapperANGLE.cpp:273 >> + requiredExtensions.append("GL_EXT_occlusion_query_boolean"_s); > > Occlusion queries are part of the core OpenGL ES 3.0 spec, so it should not be necessary to require this extension in that mode. > > Is this class properly requesting a WebGL 2.0 compatible context from ANGLE when WebGL 2.0 is enabled? Yes. I confirmed it's reaching the code initialing as EGL ver.3 in the test case. https://github.com/WebKit/WebKit/blob/00e1e0d6e977c7cc204944834d6af3254a1d5e5b/Source/WebCore/platform/graphics/texmap/GraphicsContextGLTextureMapperANGLE.cpp#L214-L215 Cocoa port is also setting the extension for WebGL2. https://github.com/WebKit/WebKit/blob/00e1e0d6e977c7cc204944834d6af3254a1d5e5b/Source/WebCore/platform/graphics/cocoa/GraphicsContextGLCocoa.mm#L366-L369 "gl.getQueryParameter(query, gl.QUERY_RESULT_AVAILABLE)" is keeping returning false because the following condition is true. https://github.com/WebKit/WebKit/blob/00e1e0d6e977c7cc204944834d6af3254a1d5e5b/Source/ThirdParty/ANGLE/src/libANGLE/validationES.cpp#L2625-L2627
Kenneth Russell
Comment 5 2022-07-25 14:44:22 PDT
Comment on attachment 461183 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=461183&action=review Looks fine to me. Filed follow-on bug crbug.com/angleproject/7526 to eliminate this requirement. r+ >>> Source/WebCore/platform/graphics/texmap/GraphicsContextGLTextureMapperANGLE.cpp:273 >>> + requiredExtensions.append("GL_EXT_occlusion_query_boolean"_s); >> >> Occlusion queries are part of the core OpenGL ES 3.0 spec, so it should not be necessary to require this extension in that mode. >> >> Is this class properly requesting a WebGL 2.0 compatible context from ANGLE when WebGL 2.0 is enabled? > > Yes. I confirmed it's reaching the code initialing as EGL ver.3 in the test case. > https://github.com/WebKit/WebKit/blob/00e1e0d6e977c7cc204944834d6af3254a1d5e5b/Source/WebCore/platform/graphics/texmap/GraphicsContextGLTextureMapperANGLE.cpp#L214-L215 > > Cocoa port is also setting the extension for WebGL2. > https://github.com/WebKit/WebKit/blob/00e1e0d6e977c7cc204944834d6af3254a1d5e5b/Source/WebCore/platform/graphics/cocoa/GraphicsContextGLCocoa.mm#L366-L369 > > "gl.getQueryParameter(query, gl.QUERY_RESULT_AVAILABLE)" is keeping returning false because the following condition is true. > https://github.com/WebKit/WebKit/blob/00e1e0d6e977c7cc204944834d6af3254a1d5e5b/Source/ThirdParty/ANGLE/src/libANGLE/validationES.cpp#L2625-L2627 Thanks, I see - that's surprising. Filed crbug.com/angleproject/7526 to remove this requirement. Looks good given that.
Fujii Hironori
Comment 6 2022-07-25 15:45:08 PDT
Comment on attachment 461183 [details] Patch Thank you for the review.
EWS
Comment 7 2022-07-25 16:18:56 PDT
Committed 252804@main (3738ce59df5b): <https://commits.webkit.org/252804@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 461183 [details].
Radar WebKit Bug Importer
Comment 8 2022-07-25 16:19:16 PDT
Note You need to log in before you can comment on or make changes to this bug.