PDA

View Full Version : So close to 3D accelerating !


[Mystik_Cool]
02-22-03, 08:51 AM
Sorry for the non-explicit title, but If I wanted to make a good one I had to explain all my problem in the title :)

I could finally get 3D acceleration working. I'm running a SuSE 8.1, and I have a nvidia TNT2 Viper V770 (32Mb) graphic card.
I had to reinstall linux. This time, I simply downloaded the NV-kernel and GLX packages with YOU (Yast Online Update). Then I rebooted, checked if agpgart and NVdriver were running, configured Xfree 4 (with sax2), choosed the "nvidia" and the "load glx", and ran glxgears. Oh surprise : 256 fps !!! I was sooo happy !

But then I tried to run UT. Obviously, the acceleration was not ok. I specified that I wanted to use Open GL and the libGL.so.1 library. But, still having trouble with that, I realized that libGL.so.1 was still pointing to some mesasoft stuff ! I deleted this symlink, moved the mesasoft stuff (just to be sure), and then made a libGL.so.1 symlink pointing to the same thing that libGL.so (my new nv_glx stuff).

But when I run glxgears (or glxinfo) with that, I have
Xlib: extension "GLX" missing on display ":0.0".
Error: couldn't get an RGB, Double-buffered visual

But my Xconfig is fine, I just checked it.

Anyone can help me ?

Thanx a lot !

PS : I hope I've been clear :rolleyes:

jschellhaass
02-22-03, 11:36 AM
Have you tried running the switch2nvidia_glx script?

Jeff

[Mystik_Cool]
02-22-03, 02:32 PM
I did. But I already checked all the symlinks, they are fine.

I ran 3ddiag. Everything seems to be ok :

3Ddiag version 0.397
Verifying 3D configuration:
Using 3dinfo
************************************************** **********

Verifying 3D configuration based on XFree86 4 for 3D board
"nVidia Coorporation Riva TnT2 [NV5] (10de@0028)":

Tests for package "NVIDIA_kernel":
package ... done.
package files ... done.
Tests for package "NVIDIA_GLX":
package ... done.
package files ... done.

Tests for correct OpenGL libraries/GLX extensions:
Symbolic Links ... done.
/etc/sysconfig/3ddiag (SCRIPT_3D=switch2nvidia_glx) ... done.

Test for correct XFree86 version ... done.

Tests for XFree86 configuration:
Config File /etc/X11/XF86Config ... done.
Driver ... done.
Color Depth ... done.
Extensions ... done.
Options ... done.

----------------------- NOTE -----------------------------------
If 3D hardware OpenGL configuration is not stable enough, you
should switch back to 'Mesa Software Rendering'. You can
verify this configuration with the command "3Ddiag --mesasoft".
----------------------- NOTE -----------------------------------

Checking GLU/glut runtime configuration:
GLU ... done (package mesaglu)
glut ... done (package mesaglut)


Any idea ??????????

bwkaz
02-22-03, 03:55 PM
With the setup where you get "extension GLX missing", is there any reason why in your XFree86.0.log?

Otherwise, what was UT doing?

Yeah, according to 3Ddiag, it all seems fine, but...

[Mystik_Cool]
02-22-03, 04:59 PM
Am I stupid ! Of course, I didn't check the XFree log...
Here are the errors I found (I can post the whole log if you want)

...
(II) LoadModule: "glx"
(II) Loading /usr/X11R6/lib/modules/glx.so
(EE) LoadModule: Module glx does not have a glxModuleData data object.
(II) UnloadModule: "glx"
(II) Unloading /usr/X11R6/lib/modules/glx.so
(EE) Failed to load module "glx" (invalid module, 0)
...
(II) NVIDIA(0): Setting mode "1280x1024"
(EE) NVIDIA(0): Failed to load glX
(II) NVIDIA(0): Using XFree86 Acceleration Architecture (XAA)
...

But I don't see what's wrong !

bwkaz
02-22-03, 05:08 PM
What's wrong is that it's trying to load the wrong file. It's opening up /usr/X11R6/lib/modules/glx.so, which is completely wrong. It should be opening /usr/X11R6/lib/modules/extensions/libglx.so instead. Well... unless, that is, the SuSE RPM does things completely differently, but I doubt that.

Look around in /usr/X11R6/lib/modules, to see what's going on with different *glx* files. If the glx.so is a symlink to something, delete it. Or delete it and make it a symlink to extensions/libglx.so, that might work as well. If it's not a symlink, move it somewhere else (like your home directory) and try starting X again.

[Mystik_Cool]
02-22-03, 05:34 PM
It's working now !!! So many thanx to you !!! I CAN PLAY UT UNDER LINUX !!! YEEEEEEEEEEEEEEHAWWWWWWW !!! :afro:

bwkaz
02-22-03, 07:02 PM
:D

I think I know the feeling... :)