[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 03:44:04 PST 2023


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

--- Comment #11 from Carlos Garcia Campos <cgarcia at igalia.com> ---
(In reply to Carlos Garcia Campos from comment #10)
> 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.

No, that's not the right solution, because we are using EGL_PLATFORM_SURFACELESS_MESA as EGL_PLATFORM_ANGLE_NATIVE_PLATFORM_TYPE_ANGLE, so we want mesa to use the surfaceless display not the native one. In that case passing default display to eglGetPlatformDisplayEXT is the right thing. so, this is actually an ANGLE patch and needs to be fixed there.

-- 
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/7d551cf9/attachment-0001.htm>


More information about the webkit-unassigned mailing list