I finally got it to work!
AMD Phenom X2 240e (2x 2,8GHz, 45W), AMD Radeon 4200 (Mainboard-Integrated GPU), Ubuntu 10.10 (+ 11.04 packages), xbmc 2:10.5-dharma+pvr~odk48+maverick, Linux Kernel 2.6.38-5, Xorg Driver radeon,
Mesa Gallium.
720p video runs perfectly at 55% CPU.
I just followed this howto:
http://pkg-xorg.alioth.debian.org/howto/build-mesa.html
and then built this init script
Code:
start on (filesystem
and started dbus
and (drm-device-added card0 PRIMARY_DEVICE_FOR_DISPLAY=1)
stop on runlevel [016]
console output
respawn
exec su xbmc -l -c /usr/bin/startx
pre-start script
export LIBGL_DRIVERS_PATH=/work/mesa/lib/gallium
export LD_LIBRARY_PATH=/work/mesa/lib/gallium
export EGL_DRIVERS_PATH=/work/mesa/lib/gallium/egl
end script
and this ~xbmc/.xinitrc
Code:
#!/bin/bash
export LIBGL_DRIVERS_PATH=/work/mesa/lib/gallium
export LD_LIBRARY_PATH=/work/mesa/lib/gallium
export EGL_DRIVERS_PATH=/work/mesa/lib/gallium/egl
xbmc-standalone
Not sure if I really need the exports in xinitrc. But it surely does not hurt.
/work/mesa is the directory of the mesa source code.
I had to disable the vsync option, or the xbmc gui and overlay would flicker badly.