DRI in X

Kevin Geiss plug-discuss@lists.plug.phoenix.az.us
Tue, 8 Apr 2003 17:32:57 -0700


you may need to install the kernel module corresponding to your video
card from the X distribution, rather than from the kernel sources. 

once you've extracted the x tree, try this:

cd xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel
make -f Makefile.linux

you may get an error at the end, but hopefully you will get a .o file for
your card in the current directory. (probably radeon.o?)

next, you want to get rid of the module that came with the
kernel. recompile your kernel, with agp and dri support on, but you want
to NOT compile dri support for your specific card, since you're going to
be using X's driver instead.

then, just to be safe, nuke any old kernel module for your card:

rm /lib/modules/2.4.120/kernel/drivers/char/drm/radeon.o

substitute your kernel version for '2.4.120' above (I don't really have
the 2.4.120 kernel installed ;) ) and your driver for radeon.o

then copy the kernel module you compiled from X to the right place:

cd xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel
mkdir -p /lib/modules/2.4.120/kernel/drivers/misc
cp -ip radeon.o /lib/modules/2.4.120/kernel/drivers/misc/

again, substitute in your kernel ver and module above.

how do you like LFS? I went the gentoo route instead


On Wed, Apr 02, 2003 at 11:08:45AM +0000, Aaron Cordova wrote:
> First, dri is enabled in my X config and is being loaded, but 'glxinfo' 
> reports that direct rendering is disabled.
> Second, I have AGP support enabled and set to run at 4x. But in the X log 
> it says that 4 is not an integer, dont worry I know that 4 is really an 
> integer ;)
> 
> 
> So how can I get Direct Rendering to start working?
> 
> Aaron Cordova
> 
> Dell Inspiron 8200
> ATI Mobility 9000 (M9)
> LFS - Book 4
> XFree 4.3.0
> 
> _________________________________________________________________
> The new MSN 8: smart spam protection and 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>