[RESEND] Wayland: swrast-gallium in combination with EGL/pipe_swrast.so?

Sedat Dilek sedat.dilek at googlemail.com
Mon Nov 1 03:28:49 PDT 2010


[RESEND] due to rejects of too big screenshots attachment.
(I am sorry about that, now as JPEG + 75% resized, ~100K should be fair now).

- Sedat -

On Sun, Oct 31, 2010 at 7:34 PM, Sedat Dilek <sedat.dilek at googlemail.com> wrote:
> Hi,
>
> I am playing with Wayland this weekend.
>
> Unfortunately, my RV250 is not r300g-compatible.
>
> As a workaround I wanted to build and use swrast-gallium for Wayland
> (compositor).
>
> Immediately, when I have "dri" in my autogen line like
> "--with-state-trackers=dri,glx,egl" I get also r300_dri.so (r300g) and
> EGL/pipe_r300.so auto-built.
>
> My RV250 has problems to use pipe_r300.so (see below).
> I must confirm that "dri" as state-tracker is required to get run
> Wayland here (after several builds).
>
> NOTE:
> After several starts of the compositor, I got Wayland running with a
> background image (JPG).
> But this is very weaky.
>
> Building mesa with "--with-state-trackers=glx,egl" (no dri set)
> results in an unuseable Wayland.
>
> Next problem is I cannot run Wayland with a mesa compiled with
> --disable-gallium.
> So Gallium seems to be a must-have as Chia-I Wu confirmed on the
> wayland-devel ML.
>
> In the end - as a more stable solution - I want to use swrastg_dri.so
> + EGL/pipe_swrast.so instead.
> The mesa build-system is not recognizing this wish of mine.
>
> Is my workaround idea wrong?
> If not, is it a good idea to modify mesa-buildsystem to have *only*
> swrastg_dri.so + EGL/pipe_swrast.so built (NO r300* stuff)?
>
> Thanks in advance.
>
>
> Kind Regards,
> - Sedat -
>
> P.S.: The background shows Walter (a friend of mine) in the
> cathedral/dome of Aachen/Germany.
>
> P.S.S.:
>
> An autogen line looks like this...
>
> ./autogen.sh --prefix=/opt/wayland --with-driver=dri
> --with-dri-driverdir=/opt/wayland/lib/dri --with-dri-drivers=swrast
> --enable-gallium-swrast --with-state-trackers=dri,glx,egl
> --disable-glu --disable-glut --disable-glw --enable-egl --enable-gles2
>
> ...results in:
>
> /opt/wayland/lib/dri:
> insgesamt 46476
> -rwxr-xr-x 1 sd sd 17052104 31. Okt 18:37 r300_dri.so
> -rwxr-xr-x 1 sd sd 14074224 31. Okt 18:37 swrast_dri.so
> -rwxr-xr-x 1 sd sd 16456880 31. Okt 18:37 swrastg_dri.so
>
> /opt/wayland/lib/egl:
> insgesamt 22804
> -rwxr-xr-x 1 sd sd    85060 31. Okt 18:37 egl_dri2.so
> -rwxr-xr-x 1 sd sd  1352956 31. Okt 18:37 egl_gallium.so
> -rwxr-xr-x 1 sd sd    47832 31. Okt 18:37 egl_glx.so
> -rwxr-xr-x 1 sd sd  3591936 31. Okt 18:37 pipe_r300.so
> -rwxr-xr-x 1 sd sd  3434328 31. Okt 18:37 pipe_swrast.so
> -rwxr-xr-x 1 sd sd 14830212 31. Okt 18:37 st_GL.so
>
> This leads to errors when starting the Wayland compositor:
>
> sd at tbox:~/src/wayland/wayland/compositor$ LC_ALL=C ./compositor -b
> ../../backgrounds/dscn1843.jpg
> r300: Warning: Unknown chipset 0x4c66
> radeon: The kernel rejected CS, see dmesg for more information.
>
> Fact is pipe_r300.so is used:
>
> # lsof | grep wayland | grep -v bash
> firefox-b 4421         sd  mem       REG        8,5   285608
> 260977 /opt/wayland/lib/libEGL.so.1.0
> firefox-b 4421         sd  mem       REG        8,5  4416992
> 308578 /opt/wayland/lib/libcairo.so.2.11101.0
> lt-compos 4523         sd  cwd       DIR        8,3     4096
> 528742 /home/sd/src/wayland/wayland/compositor
> lt-compos 4523         sd  txt       REG        8,3   151648
> 528963 /home/sd/src/wayland/wayland/compositor/.libs/lt-compositor
> lt-compos 4523         sd  mem       REG        8,5 14830212
> 260984 /opt/wayland/lib/egl/st_GL.so
> lt-compos 4523         sd  mem       REG        8,5  3591936
> 260981 /opt/wayland/lib/egl/pipe_r300.so
> lt-compos 4523         sd  mem       REG        8,5  1352956
> 260983 /opt/wayland/lib/egl/egl_gallium.so
> lt-compos 4523         sd  mem       REG        8,5   130800
> 260935 /opt/wayland/lib/libGLESv2.so.2.0.0
> lt-compos 4523         sd  mem       REG        8,5   285608
> 260977 /opt/wayland/lib/libEGL.so.1.0
> lt-compos 4523         sd  mem       REG        8,3    78296
> 528849 /home/sd/src/wayland/wayland/wayland/.libs/libwayland-server.so.0.0.0
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wayland_compositor_walter_resized.jpg
Type: image/jpeg
Size: 106209 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20101101/b78f48c3/attachment-0001.jpg>


More information about the wayland-devel mailing list