Mogwai
Posts: 21
Joined: Thu Jul 26, 2012 4:08 pm
Location: Montreal
Contact: Website

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

Thu Aug 08, 2019 2:55 am

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!

asavah
Posts: 361
Joined: Thu Aug 14, 2014 12:49 am

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

Fri Aug 09, 2019 8:59 pm

-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.

Mogwai
Posts: 21
Joined: Thu Jul 26, 2012 4:08 pm
Location: Montreal
Contact: Website

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

Fri Aug 09, 2019 10:00 pm

Cheers asavah!

kmsro was indeed the missing piece of the puzzle.

Weston works fine now.

User avatar
Gavinmc42
Posts: 3620
Joined: Wed Aug 28, 2013 3:31 am

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

Sat Aug 10, 2019 1:39 am

Does OpenGL work?
I noticed some examples in the mesa demos.

What's the best way to get Wayland up?
Start with Raspbian Lite?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Return to “Advanced users”