Radeon HD 2000 - HD 4000 series: Installing Experimental 3D Support
This howto should be usable already, but still may have some issues depending on distro you use. You also should have installed needed devel packages.
This guide is to instruct users to install experimental open source 3D support for Radeon HD 2000 - Radeon HD 4000 series (also known as R6xx/R7xx series). The instructions apply to both users of radeon (ati) and radeonhd X.org drivers.
Note R6xx/R7xx mesa code from 6xx-rewrite branch has been merged to master. Don't use that branch anymore
Known issues
- intermittent major corruption of geometry (things get drawn in the wrong place)
- still need non-master drm from ~agd5f/drm r6xx-r7xx-3d branch
Plans
- Add IRQ support (needed for vblank stuff)
Fix issues
How to build drm stuff
git clone git://anongit.freedesktop.org/~agd5f/drm cd drm git checkout -t -b r6xx-r7xx-3d origin/r6xx-r7xx-3d ./autogen.sh --prefix=$(pkg-config --variable=prefix libdrm) --libdir=$(pkg-config --variable=libdir libdrm) --includedir=$(pkg-config --variable=includedir libdrm) make sudo make install
cd linux-core make sudo make install
How to build Mesa
git clone git://anongit.freedesktop.org/mesa/mesa cd mesa git checkout -t -b master origin/master ./autogen.sh --with-dri-drivers=swrast,r600 --libdir=$(pkg-config --variable=libdir dri) --includedir=$(pkg-config --variable=includedir dri) --disable-gallium --enable-debug make sudo make install
Troubleshooting
/usr/include/drm/radeon_cs.h:185: error: ‘RADEON_GEM_DOMAIN_VRAM’ undeclared (first use in this function)
mv /usr/lib/pkgconfig/libdrm_radeon.pc /usr/lib/pkgconfig/libdrm_radeon.pc.copy mv /usr/lib64/pkgconfig/libdrm_radeon.pc /usr/lib64/pkgconfig/libdrm_radeon.pc.copy
Of course only one of these commands is needed. After moving libdrm_radeon.pc remember to call autogen againegl_tracker.h:134: error: expected specifier-qualifier-list before ‘drmModeModeInfoPtr’
You really should disable gallium for now. See suggested Mesa's autogen.sh parameters.
3D application statuses
- googleearth: starts, runs, slow, unusable
- googleearth - you may have better results starting the program from a terminal with vblank_mode=0
glxgears: runs, (30->204)->1230 FPS
- neverball: runs, ok speed, playable, nice!
- savage2: doesn't run,
- Savage2 - Fatal Error: OpenGL 2.0 not available.
- Savage2 - Fatal Error: Segmentation Fault
- Segmentation fault (core dumped)
- ETQW: doesn't run;
- ERROR: The current video card / driver combination does not support the necessary features: GL_ARB_occlusion_query
sauerbraten: starts, switches to graphics mode, starts initialize shaders and hangs after a while (Alt-SysRq-B only works)
trophy: runs, playable, (previously 90)-->250 FPS, ok
- compiz: starts and runs, effects works, gnome-terminal suffers from invisible characters, not every effect works
- openarena: works, playable, fast, ok!
- tremulous: works, playable, fast!
- Unreal Tournament 2004: Runs, too slow to play.


