[Openpvrsgx-devgroup] [RFC][PATCH] pvrsrv: 1.17: pvr_linux_fence: Repace dma_resv_list by iterator

Tony Lindgren tony at atomide.com
Wed Jul 20 06:06:52 CEST 2022


Hi,

* Anthoine Bourgeois <anthoine.bourgeois at gmail.com> [220719 21:27]:
> Hi Nikolaus,
> 
> On Wed, Jul 13, 2022 at 03:08:35PM +0200, H. Nikolaus Schaller wrote:
> > > Now I can run pvrsrvctl too, but got an error on EGL:
> > > # gles2test1
> > > --------------------- started ---------------------
> > > 'eglInitialize' returned egl error 'EGL_NOT_INITIALIZED' (0x3001)
> > 
> > Same for me:
> > 
> > root at letux:~# gles2test1
> > --------------------- started ---------------------
> > 'eglInitialize' returned egl error 'EGL_NOT_INITIALIZED' (0x3001)
> > root at letux:~#
> > 
> > But AFAIR gles2test1 didn't work for me previously.
> 
> For me, it worked on driver 1.9.2188537 with libpvrPVR2D_FRONTWSEGL.so (for direct writes to FrameBuffer).
> It seems gles2test1 replaced this custom lib by wayland now.
> 
> # ldd /usr/bin/gles2test1
> 	...
>         libwayland-client.so.0 => /usr/lib/libwayland-client.so.0 (0xb6c8b000)
>         libwayland-server.so.0 => /usr/lib/libwayland-server.so.0 (0xb6c6c000)
> 
> And that's why EGL failed to initialize.
> 
> # strace gles2test1
> ...
> connect(3, {sa_family=AF_UNIX, sun_path="/run/user/0/wayland-0"}, 24) = -1 ENOENT (No such file or directory)
> write(1, "'eglInitialize' returned egl err"..., 66'eglInitialize' returned egl error 'EGL_NOT_INITIALIZED' (0x3001)
> ) = 66
> ...
> 
> When I try to start weston, an error tells me GL_EXT_unpack_subimage is missing.
> 
> Since weston-9.0.0, GL_EXT_unpack_subimage is mandatory:
> https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/535
> 
> As 1.17 don't expose this extension, we can't do anything.

In case this helps for weston, the following works for wlroots to deal
with the GL_EXT_unpack_subimage extension. Still using a bit older
linux-openpvrsgx tree though.

Pending changes to omapdrm and linux-openpvrsgx kernel module:
https://github.com/tmlind/linux_openpvrsgx/tree/droid4-pending-pvr-omapdrm-v5.18

Ivaylo Dimitrov's mesa based on the Chromeos patches:
https://github.com/freemangordon/mesa/tree/mesa-pvr-ti

A pending mesa patch on top of Ivaylo's changes:
egl/dri2: Workaround for EGL_EXT_image_dma_buf_import_modifiers version check
http://muru.com/linux/d4/0001-egl-dri2-Workaround-for-EGL_EXT_image_dma_buf_import.patch

Ivaylo Dimitrov's pvr sgx user space blobs:
https://github.com/maemo-leste/sgx-ddk-um

Jonathan Bakker's wlroot patch updated for current wlroots:
https://github.com/tmlind/wlroots/commit/4b6bfe62de238fb03b3e80fc776578085fd5aa43

Regards,

Tony


More information about the openpvrsgx-devgroup mailing list