xserver/hw
Eric Anholt 516f8e2cad glx: Replace broken GLX visual setup with a fixed "all" mode.
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.
(cherry picked from commit c40bad88475debf7a1774e22dce835577ad32154)

Signed-off-by: Keith Packard <keithp@keithp.com>
2009-02-17 19:00:41 -08:00
..
dmx Fix dmx compile on 1.6 branch. 2009-01-12 10:57:11 -08:00
kdrive Refix Sun bug #6685465: Xephyr uses wrong or bad colortable in 8-bit mode 2008-11-25 16:31:11 -08:00
vfb Unifdef AIX. 2008-07-23 13:37:42 -04:00
xfree86 glx: Replace broken GLX visual setup with a fixed "all" mode. 2009-02-17 19:00:41 -08:00
xnest Warning fix 2008-11-25 15:05:18 -05:00
xquartz XQuartz: GL: indirect.c changes to fix the build with newer OpenGL frameworks. 2009-01-30 16:44:50 -08:00
xwin xalloc+memset(0) -> xcalloc 2008-10-06 15:36:51 -04:00
Makefile.am Remove xgl. 2008-06-12 16:00:50 -04:00