Joined: 19 Feb 2004
|Posted: Thu Mar 03, 2005 3:08 pm Post subject: OpenGL DRI DRM Problem and Solution on Pismo PowerBook
|A while back, I upgraded to xorg and kernel 2.6 on my Pismo, and in the process broke hardware-accelerated OpenGL rendering. I finally noticed this problem and some investigation yielded a solution:
1) Ensure the DRI/DRM bits are set up correctly in the kernel; this includes the following:
<*> Device Drivers->Character Devices->/dev/agpgart (AGP Support)
<*> Device Drivers->Character Devices->Apple UniNorth AGP Support
[*] Device Drivers->Character Devices->Direct Rendering Manager
<*>Device Drivers->Character Devices->Direct Rendering Manager->ATI Rage 128
[*] Device Drivers->Graphics Support->Support for frame buffer devices
<*> Device Drivers->Graphics Support->ATI Rage128 display support
Note that my Pismo has a Rage 128 card; your Powerbook may have something else, such as a Radeon.
2) Ensure that the "/etc/X11/xorg.conf" file includes the following settings
Note that my Pismo has only 8 Megs of VRAM, so I have to set the depth to 16 bits. I previously had it set to 24 bits of depth, and Xorg quietly declined to enable hardware-accelerated OpenGL.
Now, glxinfo reports "direct rendering: Yes" and glxgears gives a respectable framerate of 400+ frames per second (400 MHz PPC).
Hope this helps someone else out....