[wpe-webkit] EGL_NOT_INITIALIZED on Cog with fdo/swrast/fbdev

zan at falconsigh.net zan at falconsigh.net
Mon Jul 15 00:42:05 PDT 2019


On Wed, Jun 26, 2019, at 5:18 PM, Karl Krach wrote:
> 
> Hello,
> 
> I was wrong with my analysis of the initializeEGLDisplay() failure:
> 
> > 
> >  2) Second it's called from
> > wpewebkit-2.24.2/Source/WebCore/platform/graphics/PlatformDisplay.cpp
> > in initializeEGLDisplay(), uses the EGL_DEFAULT_DISPLAY and fails in
> > dri2_initialize_wayland_swrast() with rt=-1 wl_shm=0:
> > 
> 
> The reason is the missing support for the 'EGL_WL_bind_wayland_display' 
> extension (see Instance::initialize() in ws.cpp) when not using drm 
> (dri2_initialize_wayland_drm() in platform_wayland.c) but swrast 
> (dri2_initialize_wayland_swrast) instead. This reason is already 
> documented in
> 
>   * "Segmentation fault on Buildroot -branch next / RPi3B+" - 
> https://github.com/Igalia/cog/issues/90 and
>   * "WaylandCompositor misusing eglGetProcAddress" - 
> https://bugs.webkit.org/show_bug.cgi?id=182490#c0
> 
> 
> 
> Since I rely on the udlfb kernel module, I cannot use drm.
> 
>   * Do I have any alternative?
> 
>   * Is there a webkit version which works without the 
> 'EGL_WL_bind_wayland_display' extension?
> 
>   * Is there a mesa3d version, which supports 
> 'EGL_WL_bind_wayland_display' for swrast? (e.g. the DRI swrast driver)
> 
> BR, Karl
> 
> 

I opened the following issue to track changes in WPEBackend-fdo:
https://github.com/Igalia/WPEBackend-fdo/issues/57

The changes there might be pretty straightforward, the bigger problem would be how to handle the shm buffer in Cog.

Regards,
Zan

> 
> 
> PS: I found an article about an DRM driver for DisplayLink 
> (https://wiki.archlinux.org/index.php/DisplayLink#USB_2.0_DL-1x5,_DL-1x0_Devices) 
> - but I don't know if it fulfills our needs... at least it's not 
> working 
> out of the box ('weston --backend=drm-backend.so --tty=4' fails with 
> 'no 
> drm device found')
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> webkit-wpe mailing list      (webkit-wpe at lists.webkit.org)
> Help/Unsubscribe/Update your Subscription:
> https://lists.webkit.org/mailman//listinfo/webkit-wpe
>


More information about the webkit-wpe mailing list