Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OpenGL DRI DRM Problem and Solution on Pismo PowerBook
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
rrwood
n00b
n00b


Joined: 19 Feb 2004
Posts: 9

PostPosted: Thu Mar 03, 2005 3:08 pm    Post subject: OpenGL DRI DRM Problem and Solution on Pismo PowerBook Reply with quote

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
Section "Module"
Load "glx"
Load "dri"
...
EndSection

DefaultDepth 16

Section "DRI"
Mode 0666
EndSection


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....

-Roy
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum