xserver-multidpi/glx
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
..
dispatch.h GLX: Changes resulting from changes to Mesa generator scripts / data 2008-12-16 12:03:06 -08:00
extension_string.c Move GL/glx on level up now that it's the only thing left under GL. 2008-05-21 13:33:36 -04:00
extension_string.h Move GL/glx on level up now that it's the only thing left under GL. 2008-05-21 13:33:36 -04:00
g_disptab.h Update to SGI FreeB 2.0. 2008-09-19 12:02:28 -04:00
glapi.c gl: include assert.h if we're compiling with DEBUG. 2008-06-05 09:19:16 +09:30
glapi.h GLX: Changes resulting from changes to Mesa generator scripts / data 2008-12-16 12:03:06 -08:00
glapioffsets.h Move GL/glx on level up now that it's the only thing left under GL. 2008-05-21 13:33:36 -04:00
glapitable.h GLX: Changes resulting from changes to Mesa generator scripts / data 2008-12-16 12:03:06 -08:00
glapitemp.h Move GL/glx on level up now that it's the only thing left under GL. 2008-05-21 13:33:36 -04:00
glprocs.h Move GL/glx on level up now that it's the only thing left under GL. 2008-05-21 13:33:36 -04:00
glthread.c GLX: Changes resulting from changes to Mesa generator scripts / data 2008-12-16 12:03:06 -08:00
glthread.h Move GL/glx on level up now that it's the only thing left under GL. 2008-05-21 13:33:36 -04:00
glxbyteorder.h Move GL/glx on level up now that it's the only thing left under GL. 2008-05-21 13:33:36 -04:00
glxcmds.c xalloc+memset(0) -> xcalloc 2008-10-06 15:36:51 -04:00
glxcmdsswap.c Update to SGI FreeB 2.0. 2008-09-19 12:02:28 -04:00
glxcontext.h Update to SGI FreeB 2.0. 2008-09-19 12:02:28 -04:00
glxdrawable.h Update to SGI FreeB 2.0. 2008-09-19 12:02:28 -04:00
glxdri.c AIGLX: Reinstate call to driver texOffsetFinish hook. 2008-11-04 11:27:53 +01:00
glxdri2.c CopySubBuffer expects GL style coordinates. 2008-11-12 15:21:04 -05:00
glxdricommon.c Fix driGetConfigAttribIndex unaligned access to GLboolean. 2008-08-26 11:07:32 -04:00
glxdricommon.h Move GL/glx on level up now that it's the only thing left under GL. 2008-05-21 13:33:36 -04:00
glxdriswrast.c xalloc+memset(0) -> xcalloc 2008-10-06 15:36:51 -04:00
glxext.c Upgrade GLX Public License 1.0 to FreeB 2.0. 2008-09-22 11:26:49 -04:00
glxext.h Update to SGI FreeB 2.0. 2008-09-19 12:02:28 -04:00
glxscreens.c glx: Replace broken GLX visual setup with a fixed "all" mode. 2009-02-17 19:00:41 -08:00
glxscreens.h Update to SGI FreeB 2.0. 2008-09-19 12:02:28 -04:00
glxserver.h glx: Replace broken GLX visual setup with a fixed "all" mode. 2009-02-17 19:00:41 -08:00
glxutil.c Update to SGI FreeB 2.0. 2008-09-19 12:02:28 -04:00
glxutil.h Update to SGI FreeB 2.0. 2008-09-19 12:02:28 -04:00
indirect_dispatch_swap.c GLX: Changes resulting from changes to Mesa generator scripts / data 2008-12-16 12:03:06 -08:00
indirect_dispatch.c GLX: Changes resulting from changes to Mesa generator scripts / data 2008-12-16 12:03:06 -08:00
indirect_dispatch.h VBO: Regenerate files based on recent changes to gl_API.xml 2008-07-02 06:25:03 -07:00
indirect_program.c Move GL/glx on level up now that it's the only thing left under GL. 2008-05-21 13:33:36 -04:00
indirect_reqsize.c GLX: Changes resulting from changes to Mesa generator scripts / data 2008-12-16 12:03:06 -08:00
indirect_reqsize.h Move GL/glx on level up now that it's the only thing left under GL. 2008-05-21 13:33:36 -04:00
indirect_size_get.c VBO: Regenerate files based on recent changes to gl_API.xml 2008-07-02 06:25:03 -07:00
indirect_size_get.h Move GL/glx on level up now that it's the only thing left under GL. 2008-05-21 13:33:36 -04:00
indirect_size.h Move GL/glx on level up now that it's the only thing left under GL. 2008-05-21 13:33:36 -04:00
indirect_table.c Move GL/glx on level up now that it's the only thing left under GL. 2008-05-21 13:33:36 -04:00
indirect_table.h Move GL/glx on level up now that it's the only thing left under GL. 2008-05-21 13:33:36 -04:00
indirect_texture_compression.c Move GL/glx on level up now that it's the only thing left under GL. 2008-05-21 13:33:36 -04:00
indirect_util.c Move GL/glx on level up now that it's the only thing left under GL. 2008-05-21 13:33:36 -04:00
indirect_util.h Move GL/glx on level up now that it's the only thing left under GL. 2008-05-21 13:33:36 -04:00
Makefile.am Test for DRI2 extension in dri_internal.h and only enable AIGLX DRI2 if found. 2008-12-09 20:39:06 -08:00
render2.c Update to SGI FreeB 2.0. 2008-09-19 12:02:28 -04:00
render2swap.c Update to SGI FreeB 2.0. 2008-09-19 12:02:28 -04:00
renderpix.c Update to SGI FreeB 2.0. 2008-09-19 12:02:28 -04:00
renderpixswap.c Update to SGI FreeB 2.0. 2008-09-19 12:02:28 -04:00
rensize.c Update to SGI FreeB 2.0. 2008-09-19 12:02:28 -04:00
single2.c Update to SGI FreeB 2.0. 2008-09-19 12:02:28 -04:00
single2swap.c Update to SGI FreeB 2.0. 2008-09-19 12:02:28 -04:00
singlepix.c Update to SGI FreeB 2.0. 2008-09-19 12:02:28 -04:00
singlepixswap.c Update to SGI FreeB 2.0. 2008-09-19 12:02:28 -04:00
singlesize.c Update to SGI FreeB 2.0. 2008-09-19 12:02:28 -04:00
singlesize.h Update to SGI FreeB 2.0. 2008-09-19 12:02:28 -04:00
swap_interval.c Move GL/glx on level up now that it's the only thing left under GL. 2008-05-21 13:33:36 -04:00
unpack.h Update to SGI FreeB 2.0. 2008-09-19 12:02:28 -04:00
xfont.c Update to SGI FreeB 2.0. 2008-09-19 12:02:28 -04:00