DRI is an acronym for Direct Rendering Infrastructure. It is that part of XFree86 which is responsible for the lower level access to hardware accelerated 3D graphics.
I did a port of the DRI-driver for the S3/VIA Savage-Chips to the
new Kernel 2.6. It is based on the patch created by Erik Lindstr”m
(many thanks).
It's more a quick and dirty hack than a seriously port, but it works
for now.
Currently, the real work on the savage DRI is done by Felix Kühling and Alex
Deucher. They
are porting the sources provided by VIA to XFree86 4.4 respectively
Mesa 5.0. See here
for the current development state.
Kernel 2.6: xf86.patch.bz2 (297 k)
Kernel 2.4: xf86.patch.bz2 original patch from Erik (247 k)
Like Eriks patch to kernel 2.4, it runs smoothly tuxracer on a ProSavageDDR-Chip. The XFree86-Code is unchanged - just the Kernel-Code is adapted to work with 2.6.
The patch is against XFree86 4.2.0 (included in SuSE 8.0) and
doesn't
work with later versions.
The following description is copied from Eriks Site,
because that seems to be down, currently. It's exactly
applicable to this patch, too (with the one exception to make a
savage.ko instead of a savage.o-Module):
erik@lappy:~$ bunzip2 xf86.patch.bz2Now, do the following:
erik@lappy:~$ patch -p0 < xf86.patch
erik@lappy:~$ cd xc/This will take a while (a few years or so), so go make some coffee or
erik@lappy:~/xc$ make World
erik@lappy:~/xc$ su -c "make install"
root@lappy:/home/moh/xc# cd programs/Xserver/hw/xfree86/drivers/savageAnd now it's time for the 3D-drivers:
root@lappy:.../drivers/savage# make install
root@lappy:.../drivers/savage# ldconfig
root@lappy:.../drivers/savage# sync
root@lappy:.../drivers/savage# cd ../../os-support/linux/drm/kernel/Confirm the installation with this command:
root@lappy:.../os-support/linux/drm/kernel# make -f Makefile.linux savage.ko
root@lappy:.../os-support/linux/drm/kernel# cp savage.o /lib/modules/`uname -r`/kernel/drivers/char/drm/
root@lappy:.../os-support/linux/drm/kernel# cd ../../../../../../../../lib/GL/mesa/src/drv/savage/
root@lappy:.../mesa/src/drv/savage# make install
root@lappy:.../mesa/src/drv/savage# ldconfig
root@lappy:.../mesa/src/drv/savage# sync
root@lappy:/home/moh/# insmod savageUnless you get any errors, the installation has succeeded
root@lappy:.../mesa/src/drv/savage/# cd ../../../../../XvMC/hw/savagePlease note that you will need to load glx, dri and dga in your
root@lappy:.../XvMC/hw/savage# make install
root@lappy:.../XvMC/hw/savage# ldconfig
root@lappy:.../XvMC/hw/savage# sync
© Lars Kanis, 2004 - Letzte Änderung: 2004/02/29