All of lore.kernel.org
 help / color / mirror / Atom feed
* [RESEND] Wayland: swrast-gallium in combination with EGL/pipe_swrast.so?
       [not found] <AANLkTin_+ifx=qOTgK-Ai44vUWsD+gOmFtqoKJNf7gBt@mail.gmail.com>
@ 2010-11-01 10:28 ` Sedat Dilek
  0 siblings, 0 replies; only message in thread
From: Sedat Dilek @ 2010-11-01 10:28 UTC (permalink / raw)
  To: wayland-devel, mesa-dev, DRI; +Cc: walter

[-- Attachment #1: Type: text/plain, Size: 4305 bytes --]

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

[-- Attachment #2: wayland_compositor_walter_resized.jpg --]
[-- Type: image/jpeg, Size: 106209 bytes --]

[-- Attachment #3: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-11-01 10:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <AANLkTin_+ifx=qOTgK-Ai44vUWsD+gOmFtqoKJNf7gBt@mail.gmail.com>
2010-11-01 10:28 ` [RESEND] Wayland: swrast-gallium in combination with EGL/pipe_swrast.so? Sedat Dilek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.