Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Xorg and DRI problem, xorg.log and glxinfo disagree [fixed]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
kliment
n00b
n00b


Joined: 30 Mar 2003
Posts: 4

PostPosted: Sun Aug 15, 2004 3:41 pm    Post subject: Xorg and DRI problem, xorg.log and glxinfo disagree [fixed] Reply with quote

just switched to xorg, did the opengl-update to xorg and tried running it. it loads the driver for my voodoo 4 just fine, states that DRI is up and running in the xorg log file, but when I try to run glxinfo I get the message that DRI is disabled. Any Ideas?

$ glxinfo |grep render
direct rendering: No
OpenGL renderer string: Mesa GLX Indirect

same result if run as root.

in the xorg log file, I have
[snip]
(II) LoadModule: "dri"
(II) Loading /usr/X11R6/lib/modules/extensions/libdri.a
(II) Module dri: vendor="X.Org Foundation"
compiled for 6.7.0, module version = 1.0.0
ABI class: X.Org Server Extension, version 0.2
[snip]
(II) LoadModule: "tdfx"
(II) Loading /usr/X11R6/lib/modules/drivers/tdfx_drv.o
(II) Module tdfx: vendor="X.Org Foundation"
compiled for 6.7.0, module version = 1.0.0
Module class: X.Org Video Driver
ABI class: X.Org Video Driver, version 0.7
[snip]
(II) TDFX: Driver for 3dfx Banshee/Voodoo3 chipsets: 3dfx Banshee,
3dfx Voodoo3, 3dfx Voodoo5
[snip]
(II) TDFX(0): [dri] VideoRAM = 32768, VirtualXres = 1024, VirtualYres= 768,
[snip]
(II) TDFX(0): [drm] created "tdfx" driver at busid "PCI:1:0:0"
(II) TDFX(0): [drm] added 8192 byte SAREA at 0xe0c49000
(II) TDFX(0): [drm] mapped SAREA 0xe0c49000 to 0xb1e1b000
(II) TDFX(0): [drm] framebuffer handle = 0xe0000000
(II) TDFX(0): [drm] added 1 reserved context for kernel
(II) TDFX(0): [drm] Registers = 0xd0000000
[snip]
(II) TDFX(0): [drm] installed DRM signal handler
(II) TDFX(0): [DRI] installation complete
(==) TDFX(0): Direct rendering enabled

to me that would indicate that everything is working fine.
yet glxinfo disagrees... and opengl applications are all using software rendering (very slow)
The same card, under the same config, worked fine in xfree86


Last edited by kliment on Sun Aug 15, 2004 8:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
kliment
n00b
n00b


Joined: 30 Mar 2003
Posts: 4

PostPosted: Sun Aug 15, 2004 8:55 pm    Post subject: fix Reply with quote

The problem was with glide, which was apparrent after running

LIBGL_DEBUG=verbose glxinfo

which yielded the following errors:

libGL error:
can't find Glide library, dlopen(libglide3-v5.so) and dlopen(libglide3.so.3) both failed.
libGL error:
dlerror() message: /usr/lib/libglide3.so.3: undefined symbol: _trisetup_Default_win_nocull_valid

the problem is a missing glide library. reemerging glide does not help.
the solution is as follows:
$ wget http://dri.sourceforge.net/res/voodoo5/x86/libglide3-v5.so
# cp libglide3-v5.so /usr/lib
# ldconfig

after which dri works as expected.
Back to top
View user's profile Send private message
tts
n00b
n00b


Joined: 27 Jun 2004
Posts: 5

PostPosted: Fri Aug 20, 2004 3:04 pm    Post subject: Reply with quote

thanks, but ... why not file a bug report? it's better let the developers know what happened and fix it in the ebuild.

regards,
tts
Back to top
View user's profile Send private message
GungHo
Apprentice
Apprentice


Joined: 27 Aug 2004
Posts: 254

PostPosted: Fri Aug 27, 2004 9:30 am    Post subject: Reply with quote

holy sh*t, thats exactly the problem I'm looking for :-). I have got this prob yesterday, and haven't been able to solve it. But hopefully this rhread will help :D . I'll try it this evening, and post a reply wether I had success or not
Back to top
View user's profile Send private message
GungHo
Apprentice
Apprentice


Joined: 27 Aug 2004
Posts: 254

PostPosted: Sat Aug 28, 2004 5:51 pm    Post subject: Reply with quote

no success :cry:

I had a closer look to my errormesg, and saw that in my case not libglide3-v5.so is missing, but libglide3-v3.so. Could not find libglide3-v3.so on my box or in the net. also making a symlink from this libglide3-v5.so to libglide3-v3.so didn't help, also re-emerging of libglide3-3.10-r3 or libglide3-3.10-r4 didn't help. I also reemerged my whole xorg-x11-6.7.0-r1, but it didn't help at all :evil: .

The whole sh*t worked for a long time, with several versions of XFree and it worked also after I moved to Xorg, it stopped working after I updated libglide3 to a newer version.

Here are some messages:

glxinfo | grep renderer
OpenGL renderer string: Mesa GLX Indirect
BlackHole dev # export LIBGL_DEBUG=1


BlackHole root # qpkg -v glide-v3
media-libs/glide-v3-3.10-r3 *
media-libs/glide-v3-3.10-r4
media-libs/glide-v3-3.10-r3
BlackHole root # xawtv
This is xawtv-3.86, running on Linux/i686 (2.4.27-lck1)
Warning: Cannot convert string "-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to
type FontStruct
libGL: XF86DRIGetClientDriverName: 1.0.0 tdfx (screen 0)
libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/tdfx_dri.so
drmOpenByBusid: busid is PCI:1:0:0
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 11, (OK)
drmOpenByBusid: drmOpenMinor returns 11
drmOpenByBusid: drmGetBusid reports PCI:1:0:0
libGL: using Glide library libglide3.so.3
gd error (glide): gd error (glide): grSstSelect: non-existent SSTgd error
(glide): grSstSelect: non-existent SSTSegmentation fault


BlackHole root # qpkg -v glide-v3
media-libs/glide-v3-3.10-r4 *
media-libs/glide-v3-3.10-r4
media-libs/glide-v3-3.10-r3
BlackHole root # xawtv
This is xawtv-3.86, running on Linux/i686 (2.4.27-lck1)
Warning: Cannot convert string "-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to
type FontStruct
libGL: XF86DRIGetClientDriverName: 1.0.0 tdfx (screen 0)
libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/tdfx_dri.so
drmOpenByBusid: busid is PCI:1:0:0
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 11, (OK)
drmOpenByBusid: drmOpenMinor returns 11
drmOpenByBusid: drmGetBusid reports libGL error:
can't find Glide library, dlopen(libglide3-v3.so) and dlopen(libglide3.so.3)
both failed.
libGL error:
dlerror() message: /usr/lib/libglide3.so.3: undefined symbol:
_trisetup_3DNow_win_nocull_valid
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 145 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 368
Current serial number in output stream: 368
PCI:1:0:0


My box uses gcc-3.3.3, a self patched 2.4.27 kernel with the patchset of Con Kolivas (it had worked with this kernel before updating libglide3 :evil: ).

Who is willing to assist me tracking this thing. Otherwise I'll file a bugreport.

Thanks in advance
Back to top
View user's profile Send private message
GungHo
Apprentice
Apprentice


Joined: 27 Aug 2004
Posts: 254

PostPosted: Sun Aug 29, 2004 8:51 am    Post subject: Reply with quote

The glide-v3 package in Gentoos repository is buggy, definitively.

I d'loaded the binary package from http://glide.sourceforge.net/ , moved the 2 files libraries into /usr/lib

-rw-r--r-- 1 42 root 717198 Aug 28 2003 /usr/lib/libglide3.a
-rw-r--r-- 1 42 root 585607 Aug 28 2003 /usr/lib/libglide3.so

ran a 'ldconfig -v' and all worked well. The framerate of glxgears went up approximately 4 times, glxinfo also works well:

----
direct rendering: Yes
...
OpenGL vendor string: VA Linux Systems, Inc.
OpenGL renderer string: Mesa DRI 20021125 Voodoo3 x86/MMX/3DNow!/SSE
OpenGL version string: 1.2 Mesa 5.0.2
----

Don't know how to exactly locate this bug inside the sources, otherwise I'd like to volunteer tracking down the bug/s
Back to top
View user's profile Send private message
plasmagunman
l33t
l33t


Joined: 07 Jun 2002
Posts: 604
Location: berlin

PostPosted: Sat Feb 19, 2005 9:51 pm    Post subject: Reply with quote

for me (with a voodoo 3000)
Code:
USE="-3dnow" emerge glide-v3
did the trick. if someone has the same problem try it with that before polluting your gentoo with binaries ;-)
_________________
please, feel free to correct my english. - por favor, corrige mi español.
Back to top
View user's profile Send private message
GungHo
Apprentice
Apprentice


Joined: 27 Aug 2004
Posts: 254

PostPosted: Sun Feb 20, 2005 8:01 am    Post subject: Reply with quote

Hi plasmagunman,

correct me if I'm wrong, but this means to compile glide-v3 without 3dnow support ?!

If this is correct, wouldn't it be better to automate this, that whenever glide-v3 is emerged, that this is done without 3dnow support by storing


Code:
media-libs/glide-v3 -3dnow

in /etc/portage/package.use



?!

I agree that polluting the system with foreign packages is not good :)
Back to top
View user's profile Send private message
plasmagunman
l33t
l33t


Joined: 07 Jun 2002
Posts: 604
Location: berlin

PostPosted: Sun Feb 20, 2005 9:54 am    Post subject: Reply with quote

GungHo wrote:
correct me if I'm wrong, but this means to compile glide-v3 without 3dnow support ?!

If this is correct, wouldn't it be better to automate this, that whenever glide-v3 is emerged, that this is done without 3dnow support by storing


Code:
media-libs/glide-v3 -3dnow

in /etc/portage/package.use


yea, that's correct. another solution would be to tell the ebuild to ignore this useflag. it's already posted to bugzilla, but it seems, there isn't any dev left, who can test voodoo-cards. and unfortunately this solution doesn't work for everybody, so there is still a better fix to be found.
_________________
please, feel free to correct my english. - por favor, corrige mi español.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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