Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Linux, SL, WineX3.3+, NVidia and AGP working?

Psyke Phaeton
Psyke's Defense Systems
Join date: 12 Oct 2003
Posts: 197
07-15-2004 04:51
I have read that WineX 3.3+ from www.transgaming.com cvs.transgaming.org had parameters for setting AGP such as:

[X11drv]
...
"VideoRam" = "256"
"AGPVertexRam" = "32"
...


Attempting to enable AGP in SL under my old WineX results in:

INFO Creating LLAGPMemPoolNV
INFO Warning! Unable to allocate AGP memory! Disabling AGP
...
WARNING Attempting to allocate AGP memory when AGP disabled!


I downloaded the CVS and compiled it. After reading the thread here I concluded no changes were needed to the code. But I was wrong.

After compiling and using it to run SL, SL complains that it cant get an 8 bit alpha channel and screen colour goes psychodelic colours.

System: Mandrake 10.0, NVidia GeForce FX5950. My Linux logs report:
kernel: agpgart: Found an AGP 3.5 compliant device at 0000:00:00.0.
kernel: agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x mode
kernel: agpgart: Putting AGP V3 device at 0000:01:00.0 into 8x mode

using wine --debugmsg +all,warn-x11drv -- newview.exe 2>SLwinex.log the SLwinex.log reports (note: Stencil was 0 not 8, PFD_GENERIC_ACCELERATED not mentioned):

31335 - 0002:trace:opengl:X11DRV_ChoosePixelFormat (0x403cc0b4,0x406d1ef0)
- size / version : 40 / 1
- dwFlags : PFD_DOUBLEBUFFER PFD_DRAW_TO_WINDOW PFD_SUPPORT_OPENGL
- iPixelType : PFD_TYPE_RGBA
- Color : 32
- Alpha : 8
- Accum : 0
- Depth : 32
- Stencil : 0
- Aux : 0
- iLayerType : PFD_MAIN_PLANE

in old working winex CVS:

34599 - 90005b3c:trace:opengl:X11DRV_DescribePixelFormat (0x403cbf88,1,40,0x406d1ef0)
- size / version : 40 / 1
- dwFlags : PFD_DOUBLEBUFFER PFD_DRAW_TO_WINDOW PFD_GENERIC_ACCELERATED PFD_SUPPORT_OPENGL
- iPixelType : PFD_TYPE_RGBA
- Color : 32
- Alpha : 8
- Accum : 0
- Depth : 24
- Stencil : 8
- Aux : 0
- iLayerType : PFD_MAIN_PLANE

Failed fix attempt of opengl.c:

/* stencil bits */
glXGetConfig( gdi_display, vis, GLX_STENCIL_SIZE, &value );
//ppfd->cStencilBits = value; //commented out!
ppfd->cStencilBits = 8; //force to 8 for SL

after compiling and running SL
Stencil is reported as 8 and PFD_GENERIC_ACCELERATED returns, according to wine debug, but SL logs still show:

"INFO GL buffer: Color Bits 32 Alpha Bits 0 Depth Bits 24"

How do we make SL detect Alpha Bits?
How do we make AGP work for SL thru WineX?
Psyke Phaeton
Psyke's Defense Systems
Join date: 12 Oct 2003
Posts: 197
AGP works under linux with winex-3-3-2 for SL
08-05-2004 09:02
to optain wineX v3.3.2 use:

cvs -d:pserver:cvs@cvs.transgaming.org:/cvsroot login

Password is cvs

cvs -z3 -d:pserver:cvs@cvs.transgaming.org:/cvsroot co -r winex-3-3-2 winex

This works for my NVidia FX5950

Notes:

'config' file parameters:

[X11drv]
...
"VideoRam" = "256"
"AGPVertexRam" = "32"
...

I have yet to establish what numbers are correct for AGPVertexRam for my card.

If wine fails to run with the error:
wine: lstat /home/<user>/.wine/wineserver-<server name>/socket : No such file or directory

try this option first:

export LD_ASSUME_KERNEL=2.3.98

then try

export LD_ASSUME_KERNEL=2.2.5


I have not tested if win.c needs modification to let SL install as mentioned here.

yay! now to get 3d sound working...