what's new?
*London to NZ by bike and boat
*Spain/Portugal by bike
*Music: my Buzz days
jump to:
1. Ensure you have installed the Gnu Compiler Collection (gcc) and kernel source for the kernel version you're running (all of the following Ubuntu packages should be installed: build-essential, linux-source-x.y.zz, linux-headers-x.y.zz).
2. Download the mach64 and common tarballs from the Snapshots section.
3. Backup the Kernel modules directory (/lib/modules) and X11 (/usr/X11R6) directories.
4. Unpack the mach64 tarball, change into the resulting directory and run 'sudo ./install.sh'. Follow the prompts until the installation is completed.
5. Unpack the common tarball, change into the resulting directory and run 'sudo ./install.sh'. Follow the prompts until the installation is completed.
6. Confirm that the 'mach64' and 'drm' kernel modules are loaded using lsmod | grep mach64
7. Backup the file /etc/X11/xorg.conf
8. Open the above file and locate the "Screen" section and change the 'DefaultDepth' attribute to 16. This sets your X display to 16-bit colour (65,536 colours) and is necessary because DRI does not work with other colour depths.
9. Restart X Windows and run 'glxinfo | grep render' - you should see 'direct rendering: Yes'
10. Run 'glxgears -printfps' to get an idea of the rendering speed
11. Finally, if desired, tweak the DRI driver using the following options in the xorg.conf "Device" section for the mach64 card:
Here are the DRI mailing lists on sourceforge.
The dri-devel mailing list archives might be useful too.
Unfortunately, since installing the Mach64 DRI on my Ubuntu system with kernel 2.6.15 I am experiencing weird clipping problems at the edge of the rendering canvas. To my uneducated eyes it looks as if polygons that would cross the screen boundaries are not being rendered at all, so when a 3d object moves toward the screen edge it starts to get triangular holes. See these examples:
If anyone's interested, here is the contents of my xorg.conf and a sample of Xorg.0.log.