nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA FreeBSD (http://www.nvnews.net/vbulletin/forumdisplay.php?f=47)
-   -   Is compat5x really needed ? (http://www.nvnews.net/vbulletin/showthread.php?t=114265)

olivier69 06-03-08 03:37 PM

Is compat5x really needed ?
 
Apparently, the libGL.so binary distributed with FreeBSD nVidia drivers is the only binary which needs compat5x in this package. When I install the ports' libGL after nvidia-driver (96xx or 71xx, I've got an integrated GeForce 4 MX) everything works fine without compat5x. It even solved a "black screen" problem I had with full-screen 3D apps when using 96xx drivers (I still have better perfs with 71xx though).

For example :
# portupgrade -f xorg-server
# portupgrade -f nvidia-driver
# portupgrade -f libGL
# pkg_delete -f compat5x\*
And after that, every 3D app works fine.

So, is there a reason for which this binary libGL is distributed with the FreeBSD nVidia driver ? Now that modular xorg is the only supported X server on FreeBSD, wouldn't it be better to remove the bundled libGL, depend on the graphics/libGL port, and remove compat5x dependency ?

zander 06-03-08 06:01 PM

Re: Is compat5x really needed ?
 
Please see http://www.nvnews.net/vbulletin/show...&postcount=314. The libGL.so.1/libGLcore.so.1 libraries bundled with the driver include NVIDIA's OpenGL implementation and cannot be replaced if you want hardware acceleration.

olivier69 06-04-08 11:51 AM

Re: Is compat5x really needed ?
 
But they are, at least on my system. And I've got hardware acceleration. That's why I posted...

% ldconfig -r | grep libGL
108:-lGL.1 => /usr/local/lib/libGL.so.1
168:-lGLU.1 => /usr/local/lib/libGLU.so.1
190:-lGLcore.1 => /usr/local/lib/libGLcore.so.1
% ll /usr/local/lib/libGL*
lrwxr-xr-x 1 root wheel - 10 3 jui 21:16 /usr/local/lib/libGL.so@ -> libGL.so.1
-r-xr-xr-x 1 root wheel - 387840 3 jui 21:16 /usr/local/lib/libGL.so.1*
lrwxr-xr-x 1 root wheel - 11 3 jui 21:17 /usr/local/lib/libGLU.so@ -> libGLU.so.1
-r-xr-xr-x 1 root wheel - 503260 3 jui 21:17 /usr/local/lib/libGLU.so.1*
lrwxr-xr-x 1 root wheel - 14 3 jui 21:11 /usr/local/lib/libGLcore.so@ -> libGLcore.so.1
-r--r--r-- 1 root wheel - 8504784 3 jui 21:11 /usr/local/lib/libGLcore.so.1
% ll NVIDIA-FreeBSD-x86-96.43.05/obj/libGL*
-r--r--r-- 1 root wheel 612044 13 fév 18:12 NVIDIA-FreeBSD-x86-96.43.05/obj/libGL.so.1
-rwxr-xr-x 1 root wheel 8504784 13 fév 18:12 NVIDIA-FreeBSD-x86-96.43.05/obj/libGLcore.so.1

That's clear my libGL is not the nvidia one, no need to md5.

libGLcore.so.1 has been installed by nvidia-driver, which I have to install after xorg-server (because it also has this lib). libGL.so.1 has been installed after nvidia-driver by the x11/libGL port. After that, I deleted compat5x. Now everything is working fine, even better than before replacing nvidia's libGL with the port's one. By "fine" I mean "with hardware acceleration".

I've got a GeForce4 MX Integrated GPU and I use latest ports : xorg 7.3, xorg-server 1.4, libGL 7.0.3.

olivier69 06-04-08 12:23 PM

Re: Is compat5x really needed ?
 
What is strange is that :
% glxinfo | grep direct
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)

But quake3, rtc wolfenstein, glxgears and eduke32+HRP run well with no FPS loss (compared to before replacing nvidia's libGL with the graphics/libGL port and pkg_delete'ing compat5x).

zander 06-04-08 02:32 PM

Re: Is compat5x really needed ?
 
Are these native FreeBSD or Linux applications?

olivier69 06-04-08 04:07 PM

Re: Is compat5x really needed ?
 
Both.
Quake 3 : native
Return to Castle Wolfenstein : Linux compat
glxgears : native
eduke32 : native

Note that the graphics/libGL port has only replaced native libGL, not the Linux one.

gigiita 06-05-08 01:58 PM

Re: Is compat5x really needed ?
 
Please, try to run glxinfo. There are three important strings:
- server glx vendor string
- client glx vendor string
- OpenGL vendor string
All three should report "NVIDIA Corporation", which means you have correctly installed the nVidia driver, and you have full hardware acceleration

If instead you have "client glx vendor string: SGI" it means you have the Mesa version of libGL and you have some partial hardware acceleration.
With a GeForce 4 MX it is much probable you don't notice any performance loss or if you have a fast CPU, you can get better performance with this hardware/software mix.

To have full acceleration you should reinstall nVidia driver over libGL.

By the way, which FreeBSD version are you running?

olivier69 06-05-08 03:12 PM

Re: Is compat5x really needed ?
 
% glxinfo | grep vendor
server glx vendor string: NVIDIA Corporation
client glx vendor string: SGI
OpenGL vendor string: NVIDIA Corporation

Yes, I've got the Mesa libGL, and I really don't have any difference with when I used the nvidia's one. Maybe I should diff the output of glxinfo with the nvidia libGL and the Mesa one, to see if my system supports less OpenGL extensions ?

I'm running 7.0. And without compat5x now :)

zebdits 06-05-08 05:16 PM

Re: Is compat5x really needed ?
 
Someone may also consider that 5.x release is EOL since May 31, 2008

gigiita 06-06-08 06:53 AM

Re: Is compat5x really needed ?
 
Quote:

Originally Posted by olivier69 (Post 1673539)
% glxinfo | grep vendor
server glx vendor string: NVIDIA Corporation
client glx vendor string: SGI
OpenGL vendor string: NVIDIA Corporation

Yes, I've got the Mesa libGL, and I really don't have any difference with when I used the nvidia's one. Maybe I should diff the output of glxinfo with the nvidia libGL and the Mesa one, to see if my system supports less OpenGL extensions ?

I'm running 7.0. And without compat5x now :)

To me, equipped with a 7600 GS, the nVidia client gives me OpenGL 2.1.2 support, the SGI client gives only 1.4. Maybe a GeForce 4 MX can anyway support no more than 1.4 or 1.5.
I have performance drop if I use SGI client, but more important, I really miss some functions. For example, using Celestia with nVidia client gives me five render paths, including the newest OpenGL 2.0, using the SGI one gives me only three paths without 2.0.
What makes me think is the fact that you can run Linux applications. Here we are discussing from long time about troubles in the Linux emulation without understand where is the trick. It seems that on FreeBSD 7.0 Linux emulation and nVidia are somewhat incompatible, as anyone of us can run Linux 3D games, for example.
But you can, with an old 4 MX card. That's a master information!
Please, keep us informed about any news about your system.

olivier69 06-06-08 03:07 PM

Re: Is compat5x really needed ?
 
Ok :)
I'm still using "compat.linux.osrelease: 2.4.2" and "emulators/linux_base-fc4".

I tried Return to Castle Wolfenstein (games/rtcw) with 2.6 and a more recent fc-release, but it didn't work. I don't remember why... maybe just shared libs versions problems with this old game.


All times are GMT -5. The time now is 01:28 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2014, nV News.