Radeon tryouts: With and without gallium on RV250
Chia-I Wu
olvaffe at gmail.com
Mon Nov 1 07:36:41 PDT 2010
On Mon, Nov 1, 2010 at 10:09 PM, Sedat Dilek <sedat.dilek at googlemail.com> wrote:
> Hi,
>
> I have tried some more Wayland-testing on Radeon hardware and wanted
> to let you know.
>
> [1] Disabled-Gallium: NOT working (see attachment)
>
> $ LC_ALL=C ; LIBGL_DRIVERS_PATH=/opt/wayland/lib/dri DISPLAY=:0.0
> ./compositor -b ../../backgrounds/dscn1843.jpg
> failed to initialize display
> Segmentation fault
>
> For Intel-GfxCards it is even recommended [1]:
>
> "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."
>
>
> [2] With Dirty-Hack to recognize Chip-ID: NOT working (patch attached)
>
> Workaround try for the following error-messages:
>
> $ LC_ALL=C ; LIBGL_DRIVERS_PATH=/opt/wayland/lib/dri DISPLAY=:0.0 ./compositor
> r300: Warning: Unknown chipset 0x4c66
> radeon: The kernel rejected CS, see dmesg for more information.
>
>
> [ src/gallium/state_trackers/egl/drm/native_drm.c ]
> ...
> - name = is_r3xx(chip_id) ? "r300" : "r600";
> + name = "r200";
> ...
>
> Thanks Alex Deucher for pointing me to commit "st/egl: Fix r300/r600
> support in KMS backend." (see [2]) and giving help on IRC.
>
> [3] Enabled swrast-gallium and Disabled radeon-gallium: NOT working
> (see attachment)
>
> I was wrong in [3], it is possible to have swrast-gallium-only build.
>
> ./autogen.sh --prefix=/opt/wayland --with-driver=dri
> --with-dri-driverdir=/opt/wayland/lib/dri --with-dri-drivers=swrast
> --disable-gallium-radeon --enable-gallium-swrast
> --with-state-trackers=dri,glx,egl --enable-egl --enable-gles2
>
> $ LC_ALL=C ; LIBGL_DRIVERS_PATH=/opt/wayland/lib/dri DISPLAY=:0.0
> ./compositor -b ../../backgrounds/dscn1843.jpg
> libEGL warning: failed to create DRM screen
> failed to initialize display
> Segmentation fault
>
> [4] Conclusion?
>
> From #radeon/freenode (01-Nov-2010, German Local-Time UTC+1):
> ...
> [14:22:51] <agd5f> dileks: I dunno. hopefully someone on the wayland
> list can help
> [14:23:27] <dileks> I guess I have wayland-incompatible hardware
> [14:23:48] <dileks> thats a hard but fair conclusion
> [14:24:22] <agd5f> dileks: it's a software problem. I suspect you'd
> hit similar issues with other radeons.
> [14:24:39] <agd5f> I don't think anyone has actually tried to use
> wayland on AMD hw yet
> [14:27:22] <dileks> then I am pioneer in testing - I like this
> conclusion as well :-)
>
> User nanonyme gave the hint on #radeon to see problems on r600c
> (classic-mesa driver).
>
> I can't track these problems by my own, in my very first mail to this
> ML I asked for debugging help [4].
>
> I wrote about some improvements on the "building" website [1], some
> informations are outdated or wrong.
> All krh/wayland stuff has moved from his own repos to public ones, for example.
> New wayland repo is listed here [5].
> OLD: git clone git://people.freedesktop.org/~krh/wayland
> NEW: git://anongit.freedesktop.org/wayland
>
> No changes yet, I hope they follow.
For r200c to work, as mentioned on Wayland list, you need to make sure
you can enable API_OPENGLES2 bit, and support for __DRI_IMAGE
extension should be added.
As for swrast, it requires more changes to work. First, egl_dri2
needs to support loading swrast DRI modules. Then Wayland clients
should be modified to use shm_buffer interface instead of drm_buffer
interface. There could be some more that I am missing.
>
> Kind Regards,
> - Sedat -
>
>
> [1] http://wayland.freedesktop.org/building.html
> [2] http://cgit.freedesktop.org/mesa/mesa/commit/?id=1288d5c39234e7c54ae2fbb81dd788c98c62a7b3
> [3] http://lists.freedesktop.org/archives/wayland-devel/2010-November/000020.html
> [4] http://lists.freedesktop.org/archives/wayland-devel/2010-October/000002.html
> [5] http://cgit.freedesktop.org/wayland/
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>
>
--
olv at LunarG.com
More information about the wayland-devel
mailing list