View Full Version : Got ATI DRI working but glxgears still slow...
Kobnar
2006-10-29, 04:54 AM CST
I have a Radeon X300 on my Thinkpad T43... I've been working for a while to get my drivers to work. I got everything done. glxinfo & fglrxinfo both show my fglrx drivers as working with DRI. My problem? glxgears still runs average 200-220 fps. I thought it was supposed to be faster... Here's what I did:
Ok... I got my fglrx drivers from livna:
yum install kmod-fglrx
I changed my xorg.conf to disable compositing:
Section "Extensions"
Option "Composite" "Disable"
EndSection
I got my DRI working by fixing the incorrectly linked GL libraries:
ln -s /usr/lib/xorg/modules/dri/* /usr/lib/dri/
mkdir /usr/lib/driold make directory to back up dri directory
cp /usr/lib/dri/* /usr/lib/driold/ #backup old dri directory
rm /usr/lib/dri/fglrx_dri.so
ln -s /usr/lib/xorg/modules/dri/* /usr/lib/dri/
rm /usr/bin/libGL.* #remove incorrect opengl librarys
cp /usr/lib/ati-fglrx/lib* /usr/lib/ #copy ati specific opengl. library
rm /usr/lib/libGL.so.1 #remove broken symlink
ln -s /usr/lib/ati-fglrx/libGL.so.1 /usr/lib/libGL.so.1 #create new symlink
now I don't know what I'm missing. Anyone else know what I should do? is it supposed to run that slow?
Kobnar
2006-10-29, 05:21 AM CST
so I guess direct rendering isn't working:
# glxinfo | grep direct
direct rendering: No
OpenGL renderer string: Mesa GLX Indirect
ALiAs
2006-10-29, 05:35 AM CST
I replaced the incorrect linkages also, this enabled my direct rendering but I also suffered from poor performance like yourself, finally gave up in the end and tossed Core 5 back in, guess i'll wait a few months before i try again...
leigh123linux
2006-10-29, 05:36 AM CST
try adding this line to the end of /etc/X11/xorg.conf
Section "Extensions"
Option "Composite" "False"
EndSection
then restart x server
glxgears is not a good benchmark try typing fgl_glxgears
Kobnar
2006-10-29, 05:40 AM CST
More library replacing...
ln -s /usr/lib/ati-fglrx/libGL.so.1.2 /usr/X11R6/lib/libGL.so.1.2
ln -s /usr/lib/ati-fglrx/libGL.so.1.2 /usr/lib/libGL.so.1.2
I'll try the composite option now and see if it works.
leigh123linux
2006-10-29, 05:46 AM CST
to get my ati working , i just installed the livna drivers and added the composite line.
by adding this line you lose the eyecandy but get back direct hardware acceleration
Kobnar
2006-10-29, 05:47 AM CST
so I've tried:
Option "Composite" "False"
Option "Composite" "Disable"
Option "Composite" "Disabled"
and all of them don't really do anything. That last library replacing attempt I made gave be direct rendering but I have half as much performance now.... jeez. This is absurd.
leigh123linux
2006-10-29, 05:50 AM CST
try typing fgl_glxgears
and it was not the libary change that helped . try putting a # infront that option and see what happens
#Option "Composite" "False"
leigh123linux
2006-10-29, 05:57 AM CST
glxgears is a poor indication performance
Kobnar
2006-10-29, 06:54 AM CST
ok... re-installed both the mesaGL and the flgrx libs and un-did what I had done in an attempt to do it clean using only livna and xorg.conf....
$ fgl_glxgears
Using GLX_SGIX_pbuffer
libGL error: failed to open DRM: Operation not permitted
libGL error: reverting to (slow) indirect rendering
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 128 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 37
Current serial number in output stream: 37
my xorg.conf:
# Xorg configuration created by system-config-display
Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "aticonfig-Screen[0]" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Synaptics" "CorePointer"
EndSection
Section "Module"
Load "glx"
Load "dri"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Synaptics"
Driver "synaptics"
Option "Device" "/dev/input/mice"
Option "Protocol" "auto-dev"
Option "Emulate3Buttons" "yes"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[0]"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Device"
Identifier "aticonfig-Device[0]"
Driver "fglrx"
Option "VideoOverlay" "on"
EndSection
Section "Screen"
Identifier "aticonfig-Screen[0]"
Device "aticonfig-Device[0]"
Monitor "aticonfig-Monitor[0]"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1400x1050" "1280x1024" "1280x960" "1280x800" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "Extensions"
Option "Composite" "False"
EndSection
leigh123linux
2006-10-29, 07:03 AM CST
this is my FC6 ati xorg.conf
# Xorg configuration created by system-config-display
Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, a font server independent of the X server is
# used to render fonts.
FontPath "unix/:7100"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
Load "dri"
EndSection
Section "InputDevice"
# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
# Option "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"
# Or if you just want both to be control, use:
# Option "XkbOptions" "ctrl:nocaps"
#
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "gb"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "yes"
EndSection
Section "Monitor"
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Philips 105S(15inch/CM2300)"
DisplaySize 305 230
### Comment all HorizSync and VertSync values to use DDC:
HorizSync 30.0 - 63.0
VertRefresh 56.0 - 76.0
Option "dpms"
EndSection
Section "Device"
# === OpenGL Overlay ===
# Note: When OpenGL Overlay is enabled, Video Overlay
# will be disabled automatically
Identifier "Videocard0"
Driver "fglrx"
VendorName "Videocard vendor"
BoardName "ATI Technologies Inc X1600"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 16
Modes "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "DRI"
Group 0
Mode 0666
EndSection
Section "Extensions"
Option "Composite" "False"
EndSection
Kobnar
2006-10-29, 07:39 AM CST
YES! I got it working... thank you very much.
I copied over the following from your xorg.conf:
Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
Load "dri"
EndSection
and
Section "DRI"
Group 0
Mode 0666
EndSection
leigh123linux
2006-10-29, 07:54 AM CST
good to hear your sorted
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.