Tuesday, April 14, 2009

getting mach64 dri to work on debian

Nowadays kernels don't come with a mach64 drm module. It seems there used to be some security problems with the mach64 drm module, but this has long been fixed as claimed in in the Mach 64 DRI page. Anyway, to get it working for your current kernel, download the latest version from the freedesktop git untar it and cd into the distribution directory. after that:
cd libdrm-X.X.X/linux-core
Now, before installing, remove the previous modules (that came with the kernel): In debian they are usually in the
/lib/modules/`uname -r`/kernel/drivers/gpu/drm
directory. remove this directory (perhaps move it somewhere for backup) and then, back in the
directory, do
sudo make install
To see if it works, exit X, remove all the old modules:
sudo rmmod drm agpgart
and try reloading them:
sudo insmod agpgart; sudo insmod drm; sudo insmod mach64
start X and test:
glxinfo | grep render
You should have "direct rendering: Yes". If you still have "Software Rasterizer" for OpenGL, try looking through the Xorg log file at
. It's sometimes a memory problem. In this case, try reducing display depth. If this doesn't work, try rebooting before you give up -- sometimes the old modules just won't go away until reboot.

No comments:

Post a Comment