[Mesa-dev] Wayland with radeon-KMS pageflipping

Peter Clifton pcjc2 at cam.ac.uk
Sun Oct 31 07:42:02 PDT 2010


On Sun, 2010-10-31 at 15:32 +0100, Sedat Dilek wrote:
> 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:
> >>
> >
> > 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?

It was intel. Hmm.. you? 

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

All I read was not to use Gallium, as there is a _specific_ DRI2 EGL
driver which Wayland wants to use. IE.. any Gallium is bad. I might be
wrong though.

> 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 at lunarg.com>
> 
>     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

I've passed --disable-gallium, and scribbed all the other gallium
related stuff. I'm not sure how this sits if you want / need to build a
gallium driver for your graphics card though..

Perhaps build the EGL drivers separately with --disable-gallium? That
said, I've no idea if that has any chance of working.

This was my configure line for building mesa:

(from config.log, so probably missing some "" qouting around args).

./configure --disable-gallium --disable-glu --disable-glut --disable-glw
--with-driver=dri --with-dri-drivers=i965
--with-dri-driverdir=/usr/local/lib/dri --with-egl-displays=x11 drm
--enable-glx-tls --enable-gles-overlay --enable-gles1 --enable-gles2
--enable-driglx-direct

You might want to try adding -with-egl-displays="x11 drm" to get rid of
the gallium bit

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



More information about the dri-devel mailing list