Wayland with radeon-KMS pageflipping

Chia-I Wu olvaffe at gmail.com
Sun Oct 31 02:53:57 PDT 2010


On Sun, Oct 31, 2010 at 5:36 PM, Sedat Dilek <sedat.dilek at googlemail.com> wrote:
> I made a 2nd wayland build:
>
> OK, there is definitely a problem with $DISPLAY,
> if I use a different one (for example DISPLAY=:1.0), I get "failed to
> create compositor".
> If I want to use DISPLAY=:0.0, the error-message is "failed to
> initialize display" ending with a Segmentation fault.
>
> Having a look into dmesg:
> [   61.979227] lt-compositor[1702]: segfault at 30 ip 0804db9e sp
> bf8d2bd0 error 4 in lt-compositor[8048000+a000]
>
> That's saying not much to me.
>
> How can I dig deeper into the problem?
>
> Use and create packages with debug symbols I guess?
> For mesa I know there is --debug.
> Enable debug-build for cairo-gl and wayland?
>
> Any suggestions for Linux kernel-config parameters to better debug Wayland?
If you runs Wayland on X11, it does not talk to the DRM device.  So
there is no pageflipping required and thus no need to worry about the
kernel module.

I do not think the classic radeon dri driver (--with-dri-drivers=...)
has OpenGL ES support.  You are gonna need the gallium one.  IIRC,
gallium-based dri drivers do not support surfaceless contexts.  You
cannot use egl_dri2 EGL driver.  So you are more or less stuck with

 - gallium-based radeon driver
 - gallium-based egl driver (egl_gallium)

Also, you might want to start with the EGL and OpenGL ES demos found
in mesa/demos repository to make sure your setup is working.
> - Sedat -
>
>
> $ echo $DISPLAY
> :0.0
>
> $ cd $HOME/src/wayland/wayland/compositor
>
> $ LC_ALL=C ; LIBGL_DRIVERS_PATH=/opt/wayland/lib/dri DISPLAY=:1.0
> ./compositor -b ../../backgrounds/dscn1843.jpg
> failed to create compositor
>
> $ LC_ALL=C ; LIBGL_DRIVERS_PATH=/opt/wayland/lib/dri DISPLAY=:0.0
> ./compositor -b ../../backgrounds/dscn1843.jpg
> failed to initialize display
> Segmentation fault
>
> $ dmesg | tail -10
> [   21.151574] Bluetooth: RFCOMM socket layer initialized
> [   21.151577] Bluetooth: RFCOMM ver 1.11
> [   21.156060] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
> [   21.156064] Bluetooth: BNEP filters: protocol multicast
> [   21.350328] Bluetooth: SCO (Voice Link) ver 0.6
> [   21.350333] Bluetooth: SCO socket layer initialized
> [   29.904036] wlan0: no IPv6 routers present
> [   61.979227] lt-compositor[1702]: segfault at 30 ip 0804db9e sp
> bf8d2bd0 error 4 in lt-compositor[8048000+a000]
> [  152.636425] lt-compositor[1768]: segfault at 30 ip 0804db9e sp
> bf9e7f30 error 4 in lt-compositor[8048000+a000]
> [  197.229767] lt-compositor[1803]: segfault at 30 ip 0804db9e sp
> bffb9330 error 4 in lt-compositor[8048000+a000]
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
>



-- 
olv at LunarG.com


More information about the wayland-devel mailing list