Re: [Mesa-dev] Wayland with radeon-KMS pageflipping

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Oct 31, 2010 at 3:21 PM, Peter Clifton <pcjc2@xxxxxxxxx> 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?

[1] 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
commit 52ef148923ef53dfd2192273bcdac39f233da869
Author: Chia-I Wu <olv@xxxxxxxxxx>

    targets/egl: Fix a warning with --disable-opengl build.
+ ./autogen.sh --prefix=/opt/wayland --with-driver=dri
--with-dri-driverdir=/opt/wayland/lib/dri
--with-dri-drivers=r200,r300,swrast --enable-gallium-radeon
--enable-gallium-swrast --with-state-trackers=dri,glx,egl --enable-egl
--enable-gles2

Here I am on Radeon RV250 (r200), but I am building for a different
system which has Radeon RV515 (r500).
Let's see.

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

[1] http://wayland.freedesktop.org/building.html

> 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,
> Cambridge
> CB3 0FA
>
> Tel: +44 (0)7729 980173 - (No signal in the lab!)
> Tel: +44 (0)1223 748328 - (Shared lab phone, ask for me)
>
>
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux