[PATCH] glx: Replace broken GLX visual setup with a fixed "all" mode.

Colin Guthrie gmane at colin.guthr.ie
Mon Feb 9 18:21:05 PST 2009


'Twas brillig, and Colin Guthrie at 09/02/09 21:56 did gyre and gimble:
> 'Twas brillig, and Eric Anholt at 08/02/09 12:00 did gyre and gimble:
>> With trying to match depths so that you didn't end up with a depth 24
>> fbconfig for the 32-bit composite visual, I broke the alpha bits on the depth
>> 24 X visual, which angered other applications.  But in fixing that, the
>> pickFBconfigs code for "minimal" also could end up breaking GLX visuals if
>> the same FBconfig was chosen for more than one X visual.
>> We have no reason to not expose as many visuals as possible, but the old
>> "all" mode didn't match any existing X visuals to GLX visuals, so normal
>> GL apps didn't work at all.
>>
>> Instead, replace it with a simple combination of the two modes: Create GLX
>> visuals by picking unique FBconfigs with as many features as possible for
>> each X visual in order.  Then, for all remaining FBconfigs that are
>> appropriate for display, add a corresponding X and GLX visual.
>>
>> This gets all applications (even ones that aren't smart enough to do FBconfigs)
>> get all the options to get the visual configuration they want.  The only
>> potential downside is that the composite ARGB visual is unique and gets a
>> nearly full-featured GLX visual (except that the root visual might have taken
>> the tastiest FBconfig), which means that a dumb compositing manager could
>> waste resources. Write compositing managers using FBconfigs instead, please.
> 
> 
> Well after trying the last patch (the one nominated on the 16branch 
> page) things did kinda break for me with compiz (and even Mr "not a 
> benchmark" himself, glxgears!)
> 
> Applying this patch gives me back compiz.
> 
> I'd nominate this for 1.6 soon, just in case Keith has a merging fit and 
>   grabs the other one by itself.

While this could be a red herring, I can no longer get full screen video 
with Flash.

It could be this or one of the other patches from the 16branch wiki page 
that did it....

I'll try and isolate the problem but I wont be able to do so very easily 
right now.

Col

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
   Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
   Mandriva Linux Contributor [http://www.mandriva.com/]
   PulseAudio Hacker [http://www.pulseaudio.org/]
   Trac Hacker [http://trac.edgewall.org/]




More information about the xorg mailing list