Kernel - To get a kernel with the latest ati drm code nicely merged I used the drm-rawhide branch from Dave Airlie's kernel tree.
Code: Select all
git clone git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git
git checkout --track -b drm-rawhide origin/drm-rawhide
Make sure the following kernel options are enabled
- CONFIG_DRM_RADEON=y
CONFIG_DRM_RADEON_KMS=y
CONFIG_FB=y
libdrm - The interesting work seems to be happening in the modesetting-gem branch. The following is the build from the overlay with the necessary GIT_BRANCH line.
Code: Select all
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/libdrm/libdrm-2.3.0.ebuild,v 1.8 2007/05/20 20:47:52 jer Exp $
# Must be before x-modular eclass is inherited
#SNAPSHOT="yes"
EGIT_BRANCH="modesetting-gem"
inherit autotools x-modular
EGIT_REPO_URI="git://anongit.freedesktop.org/git/mesa/drm"
EGIT_BOOTSTRAP="eautoreconf"
DESCRIPTION="X.Org libdrm library"
HOMEPAGE="http://dri.freedesktop.org/"
SRC_URI=""
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
IUSE=""
RESTRICT="test" # see bug #236845
CONFIGURE_OPTIONS="--enable-udev --enable-nouveau-experimental-api"
pkg_postinst() {
x-modular_pkg_postinst
ewarn "libdrm's ABI may have changed without change in library name"
ewarn "Please rebuild media-libs/mesa, x11-base/xorg-server and"
ewarn "your video drivers in x11-drivers/*."
}
Code: Select all
emerge -1av =x11-libs/libdrm-9999-r1
mesa - You want the radeon-rewrite branch of mesa. To get it you don't need to modify the x11 layover ebuild, just add the following line to your make.conf:
- MESA_LIVE_BRANCH="radeon-rewrite"
Code: Select all
emerge -1av =media-libs/mesa-9999
Code: Select all
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-ati/xf86-video-ati-6.6.192.ebuild,v 1.1 2007/05/21 05:25:33 dberkholz Exp $
# Must be before x-modular eclass is inherited
SNAPSHOT="yes"
EGIT_BRANCH="radeon-gem-cs3"
inherit x-modular
EGIT_REPO_URI="git://anongit.freedesktop.org/~airlied/xf86-video-ati"
EGIT_BOOTSTRAP="eautoreconf"
DESCRIPTION="ATI video driver"
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
SRC_URI=""
IUSE="dri"
RDEPEND=">=x11-base/xorg-server-1.2"
DEPEND="${RDEPEND}
>=x11-misc/util-macros-1.1.3
x11-proto/fontsproto
x11-proto/randrproto
x11-proto/videoproto
x11-proto/xextproto
x11-proto/xineramaproto
x11-proto/xf86miscproto
x11-proto/xproto
dri? ( x11-proto/glproto
x11-proto/xf86driproto
>=x11-libs/libdrm-2 )"
CONFIGURE_OPTIONS="$(use_enable dri)"
Code: Select all
emerge -1av =x11-drivers/xf86-video-ati-9999-r1
The xserver automagic config works well enough now that my xorg.conf has now been whittled down to just
- Section "Files"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/75dpi/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/corefonts"
EndSection
Section "Device"
Identifier "ati"
Driver "ati"
Option "BackingStore" "True"
Option "EnablePageFlip" "True"
Option "DynamicClocks" "True"
EndSection
- OpenGL vendor string: DRI R300 Project
OpenGL renderer string: Mesa DRI R300 20090101 x86/MMX/SSE2 TCL DRI2
OpenGL version string: 1.4 Mesa 7.5-devel
2d is solid, 3d is a mixed bag. Full screen hulu is perfectly smooth on LVDS but studders if I attach my TV & have both screens running simultaniously. Good 'ol glxgears shows 1470 fps & quake 3 works well. googleearth & nexiuz are both no-go's tho. Both fail with
*********************************WARN_ONCE*********************************
File r300_render.c function r300Fallback line 463
Software fallback:ctx->Stencil.Ref[0] != ctx->Stencil.Ref[back] || ctx->Stencil.ValueMask[0] != ctx->Stencil.ValueMask[back] || ctx->Stencil.WriteMask[0] != ctx->Stencil.WriteMask[back]
***************************************************************************
This is all greatly in flux so in a week I'm sure half this post will be completely invalid. mesa 7.5 is right around the corner which will contain a bunch of gallium stuff, but I've no idea if the radeon-rewrite stuff will get merged.
Good luck, hope this helps someone else.




