Tiger: OpenGL problem with stereo visuals with AppleSGLX-55
Using AppleSGLX-55 and xorg-server-1.4.2-apple37 from macports, I can now compile a working X-server with accelerated OpenGL on Tiger. The only difference I noted compared to the system X11 is that a glx program which tries to use a stereo visual crashes. I can replicate the same crash with glxgears -stereo:
env LIBGL_DIAGNOSTIC=1 glxgears -stereo initializing libGL in apple_init_glx DIAG: CGL major 1 minor 0 error: invalid pixel format X Error of failed request: GLXBadContext Major opcode of failed request: 0 () Serial number of failed request: 22 Current serial number in output stream: 22
So far, this is the only problem that I have experienced with xorg- server-1.4.2-apple37 on Tiger. Thanks for the Tiger support, Martin
Quoted Martin Otte <otte@duke.edu>:
Using AppleSGLX-55 and xorg-server-1.4.2-apple37 from macports, I can now compile a working X-server with accelerated OpenGL on Tiger.
The only difference I noted compared to the system X11 is that a glx program which tries to use a stereo visual crashes. I can replicate the same crash with glxgears -stereo:
env LIBGL_DIAGNOSTIC=1 glxgears -stereo initializing libGL in apple_init_glx DIAG: CGL major 1 minor 0 error: invalid pixel format X Error of failed request: GLXBadContext Major opcode of failed request: 0 () Serial number of failed request: 22 Current serial number in output stream: 22
So far, this is the only problem that I have experienced with xorg-server-1.4.2-apple37 on Tiger.
Thanks for the Tiger support, Martin
Can you try adding: LIBGL_ALLOW_SOFTWARE=1 ? I'm not sure if 55 had that though. That could allow the stereo pixel format to work. It could also be that a shared context is involved. There are some restrictions with shared contexts that CGL adds, that X11 implementations usually don't. As I understand it, some changes that Jeremy made to force accelerated renderers by default in AppleSGLX also made more shared contexts work. George -- http://people.freedesktop.org/~gstaplin/
Hi, With LIBGL_ALLOW_SOFTWARE=1, I still get:
env LIBGL_ALLOW_SOFTWARE=1 LIBGL_DIAGNOSTIC=1 glxgears -stereo initializing libGL in apple_init_glx DIAG: CGL major 1 minor 0 DIAG: Software rendering is not being excluded. Not using kCGLPFAAccelerated. error: invalid pixel format X Error of failed request: GLXBadContext Major opcode of failed request: 0 () Serial number of failed request: 22 Current serial number in output stream: 22
Martin On Mar 25, 2009, at 1:16 PM, George Peter Staplin wrote:
Quoted Martin Otte <otte@duke.edu>:
Using AppleSGLX-55 and xorg-server-1.4.2-apple37 from macports, I can now compile a working X-server with accelerated OpenGL on Tiger.
The only difference I noted compared to the system X11 is that a glx program which tries to use a stereo visual crashes. I can replicate the same crash with glxgears -stereo:
env LIBGL_DIAGNOSTIC=1 glxgears -stereo initializing libGL in apple_init_glx DIAG: CGL major 1 minor 0 error: invalid pixel format X Error of failed request: GLXBadContext Major opcode of failed request: 0 () Serial number of failed request: 22 Current serial number in output stream: 22
So far, this is the only problem that I have experienced with xorg-server-1.4.2-apple37 on Tiger.
Thanks for the Tiger support, Martin
Can you try adding: LIBGL_ALLOW_SOFTWARE=1 ? I'm not sure if 55 had that though. That could allow the stereo pixel format to work. It could also be that a shared context is involved. There are some restrictions with shared contexts that CGL adds, that X11 implementations usually don't.
As I understand it, some changes that Jeremy made to force accelerated renderers by default in AppleSGLX also made more shared contexts work.
George -- http://people.freedesktop.org/~gstaplin/ _______________________________________________ Xquartz-dev mailing list Xquartz-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
Try LIBGL_FORCE_SOFTWARE=1 instead of ALLOW On Mar 25, 2009, at 11:22, Martin Otte wrote:
Hi,
With LIBGL_ALLOW_SOFTWARE=1, I still get:
env LIBGL_ALLOW_SOFTWARE=1 LIBGL_DIAGNOSTIC=1 glxgears -stereo initializing libGL in apple_init_glx DIAG: CGL major 1 minor 0 DIAG: Software rendering is not being excluded. Not using kCGLPFAAccelerated. error: invalid pixel format X Error of failed request: GLXBadContext Major opcode of failed request: 0 () Serial number of failed request: 22 Current serial number in output stream: 22
Martin
On Mar 25, 2009, at 1:16 PM, George Peter Staplin wrote:
Quoted Martin Otte <otte@duke.edu>:
Using AppleSGLX-55 and xorg-server-1.4.2-apple37 from macports, I can now compile a working X-server with accelerated OpenGL on Tiger.
The only difference I noted compared to the system X11 is that a glx program which tries to use a stereo visual crashes. I can replicate the same crash with glxgears -stereo:
env LIBGL_DIAGNOSTIC=1 glxgears -stereo initializing libGL in apple_init_glx DIAG: CGL major 1 minor 0 error: invalid pixel format X Error of failed request: GLXBadContext Major opcode of failed request: 0 () Serial number of failed request: 22 Current serial number in output stream: 22
So far, this is the only problem that I have experienced with xorg-server-1.4.2-apple37 on Tiger.
Thanks for the Tiger support, Martin
Can you try adding: LIBGL_ALLOW_SOFTWARE=1 ? I'm not sure if 55 had that though. That could allow the stereo pixel format to work. It could also be that a shared context is involved. There are some restrictions with shared contexts that CGL adds, that X11 implementations usually don't.
As I understand it, some changes that Jeremy made to force accelerated renderers by default in AppleSGLX also made more shared contexts work.
George -- http://people.freedesktop.org/~gstaplin/ _______________________________________________ Xquartz-dev mailing list Xquartz-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
_______________________________________________ Xquartz-dev mailing list Xquartz-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
LIBGL_FORCE_SOFTWARE didn't seem to do anything, but grepping in the source code it looks like there is a LIBGL_ALWAYS_SOFTWARE which I tried. Unfortunately, I get the same result on Tiger:
env LIBGL_DIAGNOSTIC=1 LIBGL_ALWAYS_SOFTWARE=1 LIBGL_DUMP_VISUALID=1 glxgears -stereo initializing libGL in apple_init_glx DIAG: CGL major 1 minor 0 visualid 0x1b2 DIAG: Software rendering requested. Using kCGLRendererGenericFloatID. error: invalid pixel format X Error of failed request: GLXBadContext Major opcode of failed request: 0 () Serial number of failed request: 22 Current serial number in output stream: 22
glxinfo shows the information for visual id 1b2 as: Visual ID: 1b2 depth=24 class=TrueColor bufferSize=32 level=0 renderType=rgba doubleBuffer=1 stereo=1 rgba: redSize=8 greenSize=8 blueSize=8 alphaSize=8 auxBuffers=0 depthSize=32 stencilSize=0 accum: redSize=8 greenSize=8 blueSize=8 alphaSize=8 multiSample=0 multiSampleBuffers=0 visualCaveat=None I don't need stereo visuals, but the software that I use checks if stereo visuals are available and if so opens a stereo opengl context, at which point it stops just like the glxgears -stereo example. Thanks, Martin On Mar 25, 2009, at 5:58 PM, Jeremy Huddleston wrote:
Try LIBGL_FORCE_SOFTWARE=1 instead of ALLOW
On Mar 25, 2009, at 11:22, Martin Otte wrote:
Hi,
With LIBGL_ALLOW_SOFTWARE=1, I still get:
env LIBGL_ALLOW_SOFTWARE=1 LIBGL_DIAGNOSTIC=1 glxgears -stereo initializing libGL in apple_init_glx DIAG: CGL major 1 minor 0 DIAG: Software rendering is not being excluded. Not using kCGLPFAAccelerated. error: invalid pixel format X Error of failed request: GLXBadContext Major opcode of failed request: 0 () Serial number of failed request: 22 Current serial number in output stream: 22
Martin
On Mar 25, 2009, at 1:16 PM, George Peter Staplin wrote:
Quoted Martin Otte <otte@duke.edu>:
Using AppleSGLX-55 and xorg-server-1.4.2-apple37 from macports, I can now compile a working X-server with accelerated OpenGL on Tiger.
The only difference I noted compared to the system X11 is that a glx program which tries to use a stereo visual crashes. I can replicate the same crash with glxgears -stereo:
env LIBGL_DIAGNOSTIC=1 glxgears -stereo initializing libGL in apple_init_glx DIAG: CGL major 1 minor 0 error: invalid pixel format X Error of failed request: GLXBadContext Major opcode of failed request: 0 () Serial number of failed request: 22 Current serial number in output stream: 22
So far, this is the only problem that I have experienced with xorg-server-1.4.2-apple37 on Tiger.
Thanks for the Tiger support, Martin
Can you try adding: LIBGL_ALLOW_SOFTWARE=1 ? I'm not sure if 55 had that though. That could allow the stereo pixel format to work. It could also be that a shared context is involved. There are some restrictions with shared contexts that CGL adds, that X11 implementations usually don't.
As I understand it, some changes that Jeremy made to force accelerated renderers by default in AppleSGLX also made more shared contexts work.
George -- http://people.freedesktop.org/~gstaplin/ _______________________________________________ Xquartz-dev mailing list Xquartz-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
_______________________________________________ Xquartz-dev mailing list Xquartz-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
_______________________________________________ Xquartz-dev mailing list Xquartz-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
participants (3)
-
George Peter Staplin
-
Jeremy Huddleston
-
Martin Otte