[Mesa-dev] Wayland with radeon-KMS pageflipping
sedat.dilek at googlemail.com
Sun Oct 31 07:32:42 PDT 2010
On Sun, Oct 31, 2010 at 3:21 PM, Peter Clifton <pcjc2 at cam.ac.uk> wrote:
> On Sun, 2010-10-31 at 10:36 +0100, Sedat Dilek 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.
> Taking a guess, I think this is the same problem I hit. wayland isn't
> checking and exiting after it fails to successfully initialize EGL /
> some other resource, and continuing on blindly - hence the segfault.
> In my case, it was because mesa was compiled without --disable-gallium
> That was REQUIRED for me to get it working.. just deleting the gallium
> EGL modules to leave the DRI2 ones was not enough. (There might have
> been GLES drives which picked up gallium of course, as I didn't delete
> anything there).
Which gfxcard is that?
 says for Intel gfxcards:
"If you're using an intel chipset, it's best to also pass
--disable-gallium to ./configure, since otherwise libEGL will try to
load the gallium sw rasterizer before loading the Intel DRI driver."
What does this mean in general? Do NOT build and use swrast?
That's my current autogen line for mesa:
$ grep -A5 "git log" mesa.log
+ git log --pretty=short -1
Author: Chia-I Wu <olv at lunarg.com>
targets/egl: Fix a warning with --disable-opengl build.
+ ./autogen.sh --prefix=/opt/wayland --with-driver=dri
--enable-gallium-swrast --with-state-trackers=dri,glx,egl --enable-egl
Here I am on Radeon RV250 (r200), but I am building for a different
system which has Radeon RV515 (r500).
--disable-gallium -> EGL tracker: no
According to Chia-I Wu this is needed.
BTW, it is now:
$ egrep -i 'EGL drivers|EGL Gallium STs|checking for XCB_DRI2' mesa.log
checking for XCB_DRI2... yes
EGL drivers: egl_glx egl_dri2 egl_gallium
EGL Gallium STs: $(GL_LIB)
- Sedat -
> I can get the compositor running, but all my clients quit as I've got a
> problem with xkb maps not being found / compiled properly with
> my /usr/local installed libxkbcommon.
> Peter Clifton
> Electrical Engineering Division,
> Engineering Department,
> University of Cambridge,
> 9, JJ Thomson Avenue,
> CB3 0FA
> Tel: +44 (0)7729 980173 - (No signal in the lab!)
> Tel: +44 (0)1223 748328 - (Shared lab phone, ask for me)
More information about the dri-devel