The world, how it works, surroundings, myself, etc.

Monday, March 13, 2006

Getting direct rendering on MSI Xtreme with ATI Radeon Xpress 200

Configuration:
MSI Xtreme motherboard x86_64, 512 MB RAM (with 64 M shared)
ATI RADEON XPRESS 200 Series integrated on-board graphics

Problem: DRI not enabled with ATI drivers on Linux. Actually, after installing the rpm available from ATI's site, glxgears' performance drops. What runs at 400 FPS with vesa drivers, runs at 200 FPS with ATI's drivers (fglrx).

Solution: The kernel module wasn't getting compiled properly. ATI released new drivers on 8th, March. But that wasn't enough. It required some tweaking.
I used to get a missing <asm/ioctl32.h> error. There's no <asm/ioctl32.h> on my Fedora Core 4 (FC4-x86_64)
Replacing all such occurences with <linux/ioctl32.h> works.

Essentially:
  • cd /lib/modules/fglrx/build_mod
  • Replace all occurrences of <asm/ioctl32.h> with <linux/ioctl32.h>
  • sh make.sh (this should succeed. It should at least make fglrx.ko)
  • cd ..
  • sh make_install.sh
Besides, I need the fglrx64 rpm installed. The rpm released on 8th March didn't work for me. This one did.
So, finally I have direct rendering (confirmed with: glxinfo | grep direct) on FC4-x86_64. glxgears reports 733 FPS.

No comments: