Page 1 of 1

Weston/Mesa fails on v3d/rpi4 - works on vc4/rpi3

Posted: Thu Aug 08, 2019 2:55 am
by Mogwai
Greetings!

I'm trying to figure out why my compiled weston works fine on RPi3 vc4:
https://pastebin.com/jbcyk6Gb

But same image fails on RPi4 v3d:
https://pastebin.com/dFTK88dL

I suspect the failure is in Mesa EGL, but I have both vc4/v3d drivers built.
Does anyone know if Raspbian applies any v3d related patches to weston or mesa that has not yet been merged upstream?

If I build the swrast driver, it just falls back to software rendering and starts up normally (but slow, obviously).
If I add "--use-pixman" same thing.

This is how I build mesa and weston:
https://intestinate.com/pilfs/beyond.html#wayland

Also, any help on how to get more debug info out of weston/mesa would be appreciated.
I've tried a few environment variables like LIBGL_DEBUG and EGL_LOG_LEVEL but they don't produce much.

Cheers!

Re: Weston/Mesa fails on v3d/rpi4 - works on vc4/rpi3

Posted: Fri Aug 09, 2019 8:59 pm
by asavah
-Dgallium-drivers="vc4,v3d" is not enough.

Code: Select all

-Dgallium-drivers="swrast,vc4,v3d,kmsro"
kmsro is needed for render-only gpus like mali, vivante, vc4, v3d etc
swrast is a fallback.
You may want to use
dtoverlay=vc4-fkms-v3d
on pi4, thats what raspbian uses.

Re: Weston/Mesa fails on v3d/rpi4 - works on vc4/rpi3

Posted: Fri Aug 09, 2019 10:00 pm
by Mogwai
Cheers asavah!

kmsro was indeed the missing piece of the puzzle.

Weston works fine now.

Re: Weston/Mesa fails on v3d/rpi4 - works on vc4/rpi3

Posted: Sat Aug 10, 2019 1:39 am
by Gavinmc42
Does OpenGL work?
I noticed some examples in the mesa demos.

What's the best way to get Wayland up?
Start with Raspbian Lite?