Recently, Mesa head has merged support for using Gallium to accelerate video decode using VDPAU, XvMC, and va-api.This code is mostly tested on the r600g driver, so if you have a Radeon HD 3xxx or better, you're in luck.Be aware, however, that the driver does not have good thermal/power management; hot laptops like my x100e will be worse off than with fglrx.I did this, tested OpenGL, and reverted to fglrx because my laptop was too hot to complete any major compile, or view a flash video in Gnash.

Notes on building Mesa from git HEAD (7.12 git)OS: Debian 6.0.x/squeezeBackports and updates enabled, but don't help much with this; one or two of the packages are available, though.

2. Upgrading packages to usable versionsGet sources for the packages below from Wheezy or Sid (Wheezy is up-to-date enough). Rebuild in the indicated order; xorg-sgml-doctools & libdrm will provide build-depends for later packages, IIRC, and should thus be installed before proceeding.

4. Get the source.Do you want the main version, which is regularly updated, but only supportsMPEG2 video decode now, or Emeric's VP8-enabled branch, which lags behind?I don't know the URL for Emeric's branch; trunk is here:

Assuming you have an r600-compatible Radeon, you're in luck.This includes all HD 3xxx cards, like my X100e's HD 3200 Mobility.These cards are where pipe-video support is developed.An Intel card, though, is very bad news: Intel doesn't support Gallium,but only the "classic" driver, without pipe-video.

6. Configure.You will need to know the prefix/libdir/driverdir/*dir you intend to use,the features to support, and how to enable them. ./configure --help is key.

--enable-texture-float enables a patented OpenGL extension, not suited for distribution in the US or some other countries. You need to license it (fromSGI) in the US. This does not include code to enable s3tc, though using s2tc appears to be OK

Gallium r600 will not build unless you enable the gallium swrast driver; IIRC, all Gallium drivers rely on "swrast" (the softpipe/llvmpipe driver) as fallback.--enable-shared-glapi and --enable-shared-dricore will speed up the buildand reduce disk use by building internal components as shared libs, but are experimental (BEWARE!).I have attempted to disable everything but OpenGL and pipe-video (I disabled xvmc too).

I recommend installing in /opt/mesa or some such path, as this avoids fouling up the main system paths. In my case, I had a separate partition for all the experiments.

You will need to set some variables in your .bashrc (or whatever you use) to use the alternate install:

Now, you'll need to manually backport/update libdrm to 2.4.31 I'm using the tarball http://dri.freedesktop.org/libdrm/libdrm-2.4.31.tar.bz2Copy over debian/ from a packaged older version.Check the patches in debian/patches: as it stands, patch 01 needs a slight change in offset from 70 to 74.Run

If you run dpkg-buildpackage -b, it will die because *.symbols doesn't match the version. Copy the new symbols files over the old ones (it will take 3 builds before this works).Then install the debs, and you can configure.

There is a bug in the configure script: CXXFLAGS must be set to include -I../../src/mapi -I../../src/mesaIf you don't do this you will get an FTBFS!