Re: GLX - 24-bit depth buffer
Re: GLX - 24-bit depth buffer
- Subject: Re: GLX - 24-bit depth buffer
- From: George Peter Staplin <email@hidden>
- Date: Sun, 26 Oct 2008 08:40:23 -0600
Quoted Zedr0n <email@hidden>:
Hi
Hi,
Thanks for quick reply, it indeed works on 1.4.2-apple19, i've got the
visuals now.
Sorry about the delay in getting back to you on this message.
Alas, the problem seems to be a different issue. I'm getting more like
missing textures.
http://pcsx2-mac.quant0r.com/files/xmiss1.png
http://pcsx2-mac.quant0r.com/files/xmiss2.png
I thought it was zbuffer error, not showing them because of wrong depth
size but doesn't seem like that.
I'm not sure what that is. I fixed several bugs last week in the
alpha size, stencil, and accum capability detection. The alpha size
was previously hard coded to 1 for the CGLPixelFormatObj associated
with each visual. The others should now match the hardware detected
capabilities. Now I believe there is just multisampling support to
detect and set as available.
The next beta may have these changes, and more. Jeremy has been
adding improvements too.
For now, could you tell me what your VisualID is? It's the visualid
member of the XVisualInfo struct returned by glXChooseVisual().
printf("my visualid is %lx\n", visinfo->visualid);
What does that id correspond to in glxinfo -v?
It should look something like this:
Visual ID: 22 depth=24 class=DirectColor
bufferSize=32 level=0 renderType=rgba doubleBuffer=1 stereo=0
rgba: redSize=8 greenSize=8 blueSize=8 alphaSize=0
auxBuffers=4 depthSize=24 stencilSize=8
accum: redSize=16 greenSize=16 blueSize=16 alphaSize=16
multiSample=0 multiSampleBuffers=0
visualCaveat=None
Opaque.
Thanks
Quoted Zedr0n <email@hidden>:
Hi
I'm porting a ps2 emulator pcsx2 to mac and using X11 for video
output - glX, to be specific. I need 24-bit depth buffer but
glxinfo reports that I only have 16-bit buffer? I have an mbp with
8600gt, so I wonder if really 16-bit max should be available?
int attrListDbl[] = { GLX_RGBA, GLX_DOUBLEBUFFER, GLX_RED_SIZE, 8,
GLX_GREEN_SIZE, 8, GLX_BLUE_SIZE, 8, GLX_DEPTH_SIZE, 24, None };
vi = glXChooseVisual(display, screen, attrListDbl);
This call returns NULL too.
Thanks for the detailed analysis and test case.
I will check if that works in 1.4.2-apple19 soon. I have a pile of
things to look into at the moment, and more filling my list.
There were some problems with missing visuals in GLX before. With
1.4.2-apple19 we went from having 16 visuals to 256 on some
machines (depending on if enable_stereo was set/enabled in the
org.x.X11 defaults). Most machines should have 128 or 256 "glxinfo
-v" visuals with the changes.
Here's a message announcing the work: Quoted Jeremy Huddleston
<email@hidden>:
George has put some extra work into GLX that I'd like to put out
into the wild. You need to install 2.3.2_beta1 first, then update
the X11 binary to 1.4.2-apple19 from here:
http://static.macosforge.org/xquartz/downloads/X11-1.4.2-apple19.bz2
Just download, decompress, and replace
/Applications/Utilities/X11.app/ Contents/MacOS/X11 with it.
George
--
http://people.freedesktop.org/~gstaplin/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden