XBMC Community Forum
[LINUX] HOW-TO use VAAPI HW Acceleration on AMD Zacate (Fusion) platform - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: XBMC General Help and Support (/forumdisplay.php?fid=111)
+---- Forum: Linux and Live support (/forumdisplay.php?fid=52)
+---- Thread: [LINUX] HOW-TO use VAAPI HW Acceleration on AMD Zacate (Fusion) platform (/showthread.php?tid=99154)



- GeorgeVasil - 2011-06-16 13:41

Ok i did some testing today..on my 785G platform.

Quote:sudo apt-get libdrm-dev

wget three vaapi packages and dpkg -i them (with the newest xbva 0.8.x)

wget the latest 11.6 catalyst drivers
sudo sh ati-driver --buildpkg Ubuntu/natty
sudo dpkg -i fglrx*.deb
sudo aticonfig --initial

test with vainfo, fglrxinfo all ok

sudo shutdown -r now (reboot!)

xbmc-pvr https://launchpad.net/~lars-opdenkamp/+archive/xbmc-pvr

With vaapi enabled + unity enabled ..xbmc crashes at playback.

When i disable unity xbmc plays videos with vaapi but it's a total mess.

720p playback seems ok but 1080p has issues :/

here are some screenshots.

home 2k9 1080p

http://imageshack.us/photo/my-images/6/img0005mos.jpg/

http://imageshack.us/photo/my-images/26/img0006hsy.jpg/

iceage2 1080p

http://imageshack.us/photo/my-images/192/img0007znp.jpg/

http://imageshack.us/photo/my-images/191/img0008oo.jpg/


- Robotica - 2011-06-16 14:16

Rapoza Wrote:I know I'm a complete nerd, but please robotica, can you include the steps to do this?

Another question: If you include the Ubuntu-X rep (for open driver), then the vaapi changes to version 1.x.x on the first dist-upgrade. Are those preferible over gbeauchesne?

**I ate you, now I have to do another clean install Laugh

Thanks for your above info. I have updated the OP with it, only based on 11.6 ATI Driver. I am not sure to include reps, so I leave them out of the OP for now.

Tonight I will have a look for the patch. ATM I have HP DM1 Fusion netbook and not the ASUS board. So my media center is postphoned for a while...

It would be great if you could share your complete command list+xorg.conf to make a working Natty XBMC@AMD.


- Rapoza - 2011-06-16 14:29

@George:
What I'm suspecting is that it isn't possible to make a minimal command line working installation without the desktop.

¿Can you tell me whats the key on xbmc to show that info?

@Robotica:
the problem is that isn't completely working, but being a programmer I've done some optimization. Professional deform. I was thinking on doing a script.
This evening.


- Robotica - 2011-06-16 14:56

Rapoza Wrote:@George:
What I'm suspecting is that it isn't possible to make a minimal command line working installation without the desktop.

¿Can you tell me whats the key on xbmc to show that info?

Turn on debugging in settings (via XBMC GUI)


- wobu - 2011-06-16 15:14

Rapoza Wrote:@George:
What I'm suspecting is that it isn't possible to make a minimal command line working installation without the desktop.

¿Can you tell me whats the key on xbmc to show that info?

@Robotica:
the problem is that isn't completely working, but being a programmer I've done some optimization. Professional deform. I was thinking on doing a script.
This evening.

Key 'O' will turn it on


- Robotica - 2011-06-16 15:23

Rapoza Wrote:I know I'm a complete nerd, but please robotica, can you include the steps to do this?

Another question: If you include the Ubuntu-X rep (for open driver), then the vaapi changes to version 1.x.x on the first dist-upgrade. Are those preferible over gbeauchesne?

**I ate you, now I have to do another clean install Laugh

Maybe it is easier to build from GIT instead of using 10. 1 since the patch is included.

Or use:

Code:
./bootstrap
./configure --prefix=/usr/local/xbmc --enable-vaapi --enable-libbluray
wget http://paste.kde.org/7020/raw/ -O ./ReferenceClockHang.patch
patch -p1 < ./ReferenceClockHang.patch
make -j2
sudo make install



Catalyst 11.6 and Kernel 2.6.39 - WytRaven - 2011-06-16 16:28

If you are like me and using the 2.6.39 kernel then the standard method of installation wont work. Here's a revised version based on Robotica's original format which works for us:

Code:
sudo apt-get install -y build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libelfg0 dh-modaliases
sudo apt-get install -y ia32-libs

cd ~; mkdir catalyst11.6; cd catalyst11.6
wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-6-x86.x86_64.run
wget http://www.mindwerks.net/wp-content/uploads/2011/03/2.6.39_bkl.patch
wget http://www.mindwerks.net/wp-content/uploads/2011/03/no_bkl.patch
chmod +x ati-driver-installer-11-6-x86.x86_64.run
sh ./ati-driver-installer-11-6-x86.x86_64.run --extract ati
cd ati; for i in ../*.patch; do patch -p1 < $i; done
./ati-installer.sh 8.861 --buildpkg Ubuntu/natty
cd ..
rm -rf ati
sudo dpkg -i fglrx*.deb
sudo reboot



- Robotica - 2011-06-16 16:42

WytRaven Wrote:If you are like me and using the 2.6.39 kernel then the standard method of installation wont work. Here's a revised version based on Robotica's original format which works for us:

Code:
sudo apt-get install -y build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libelfg0 dh-modaliases
sudo apt-get install -y ia32-libs

cd ~; mkdir catalyst11.6; cd catalyst11.6
wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-6-x86.x86_64.run
wget http://www.mindwerks.net/wp-content/uploads/2011/03/2.6.39_bkl.patch
wget http://www.mindwerks.net/wp-content/uploads/2011/03/no_bkl.patch
chmod +x ati-driver-installer-11-6-x86.x86_64.run
sh ./ati-driver-installer-11-6-x86.x86_64.run --extract ati
cd ati; for i in ../*.patch; do patch -p1 < $i; done
./ati-installer.sh 8.841 --buildpkg Ubuntu/natty
cd ..
rm -rf ati
sudo dpkg -i fglrx*.deb
sudo reboot

Cool & thanks. Updated OP with this info.

Also added sudo aticonfig --initial -f ##--adapter=all##


And which libva do you use? The patched from https://launchpad.net/~rexbron/+archive/bugfixes or just the normal http://www.splitted-desktop.com/~gbeauchesne/xvba-video/xvba-video_0.8.0-1_amd64.deb


- WytRaven - 2011-06-16 16:54

Robotica Wrote:Isn't sudo aticonfig --initial -f ##--adapter=all##
needed?

Only if you don't have an /etc/X11/xorg.conf already. Well let's just say that I didn't do an aticonfig and already had an /etc/X11/xorg.conf in place and it worked for me.

Robotica Wrote:And which libva do you use? The patched from https://launchpad.net/~rexbron/+archive/bugfixes or just the normal http://www.splitted-desktop.com/~gbeauchesne/xvba-video/xvba-video_0.8.0-1_amd64.deb

I currently have the 0.8.0-1 from splitted installed, here's my vainfo

Code:
libva: libva version 0.32.0-sds2
Xlib:  extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA API version: 0.32
vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.8.0
vainfo: Supported profile and entrypoints
      VAProfileH264High               :    VAEntrypointVLD
      VAProfileVC1Advanced            :    VAEntrypointVLD

But I have not compiled xbmc yet. I'm still playing with mplayer and have no sound and -vo vaapi crashes it every time. I may just go straight for the xbmc build and then start figuring out the issues as I have no idea if the mplayer crash is it's fault or the vaapi libs at this point and I have no intention of using mplayer on this machine beyond this testing I'm doing.


- Robotica - 2011-06-16 16:58

Edited: bullshit