Bug 15667

Summary: couldn't find RGB GLX visual when AIGLX is disabled
Product: xorg Reporter: Jie Luo <clotho67>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: krh
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Xorg.log none

Description Jie Luo 2008-04-22 22:02:03 UTC
Today when I'm try to run glxinfo with AIGLX disabled, I find it does not work. It gives me a error.

Error: couldn't find RGB GLX visual

I find this piece of code in glxcmds.c in mesa, and (*ppsc)->configs == NULL is true. 

    /* Check to see if the GL is supported on this screen */
    *ppsc = &((*ppriv)->screenConfigs[scrn]);
    if ( (*ppsc)->configs == NULL ) {
        /* No support for GL on this screen regardless of visual */
        return GLX_BAD_VISUAL;
    }

So there must be some problem with the initialization of __GLXdisplayPrivate. I will take a further look, if I have time.

I'm surprise that no one have noticed this part was broken.
Comment 1 Jie Luo 2008-04-22 22:03:28 UTC
Created attachment 16118 [details]
Xorg.log
Comment 2 Michel Dänzer 2008-07-15 10:04:06 UTC
I think this is a regression caused by one of the GLX visual reworks.
Comment 3 Michel Dänzer 2009-09-01 02:11:19 UTC
Is this still an issue with xserver 1.6.x?
Comment 4 Jie Luo 2009-09-01 23:35:51 UTC
(In reply to comment #3)
> Is this still an issue with xserver 1.6.x?
> 

This issue is fixed with xsrver 1.6.3.901. I didn't check other versions. But I believe it is fixed with 1.6.x.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.