[Webkit-unassigned] [Bug 249125] [GTK] WebGL not available with USE_ANGLE_WEBGL and sandbox enabled

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 3 02:28:14 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=249125

--- Comment #10 from Carlos Garcia Campos <cgarcia at igalia.com> ---
I found the problem of eglInitialize. GraphicsContextGLGBM::platformInitializeContext() uses EGL_DEFAULT_DISPLAY and mesa (when built with x11 support) uses x11 as platform for the default display. So, we are always using EGL over xwayland in both GTK and WPE. With the sandbox enabled, we don't bind X11 when displaynis wayland and mesa fails to initialize egl because xcb_connect() fails. See logs:

libEGL debug: Native platform type: x11 (build-time configuration)
libEGL debug: EGL user error 0x3003 (EGL_BAD_ALLOC) in eglInitialize: xcb_connect failed

libEGL debug: EGL user error 0x3003 (EGL_BAD_ALLOC) in eglInitialize: xcb_connect failed

libEGL debug: EGL user error 0x3003 (EGL_BAD_ALLOC) in eglInitialize: xcb_connect failed

libEGL debug: EGL user error 0x3001 (EGL_NOT_INITIALIZED) in eglInitialize

ERR: Display.cpp:1021 (initialize): ANGLE Display::initialize error 12289: Failed to initialize system egl

So, we should always pass the native display to EGL_GetPlatformDisplayEXT, to ensure mesa returns wayland platform from _eglNativePlatformDetectNativeDisplay() when called with a wl_display.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230103/deb224ed/attachment.htm>


More information about the webkit-unassigned mailing list