xserver/hw/xfree86
Eric Anholt 0fd4d26240 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>
(cherry picked from commit 516f8e2cad)
2009-07-26 12:25:11 -07:00
..
common Default to use standard bitmap fonts, with builtins as fallback 2009-02-24 22:30:13 -08:00
ddc EDID: Catch even more cases of encoding aspect as size. 2008-10-27 09:46:22 -04:00
dixmods glx: Replace broken GLX visual setup with a fixed "all" mode. 2009-07-26 12:25:11 -07:00
doc xfree86: If AEI is on, disable "kbd" and "mouse" devices. 2008-11-05 13:36:42 -05:00
dri dri: don't set the dixPrivate key to NULL, as this is a staticly set variable. 2008-10-27 09:47:45 -04:00
dri2 Get out of the mesa symlinking business. 2008-06-26 16:14:51 -04:00
dummylib No more "-scanpci" given that we already have it in libpciaccess. 2008-02-25 17:08:07 -03:00
exa exa: use xf86ReturnOptValBool instead of xf86IsOptionSet 2008-03-24 10:22:37 -04:00
fbdevhw Fix fbdevhw initialization for PCI drivers. 2008-05-16 10:03:24 -04:00
i2c Fixing xf86I2CGetScreenBuses(), now dereferencing the correct pointer. 2007-09-04 16:42:57 +02:00
int10 int10: Fix a nasty memory leak. 2008-10-08 11:16:56 -04:00
loader Build fixes 2009-02-24 22:28:00 -08:00
modes Check nextEnabledOutput()'s return in bestModeForAspect() 2008-10-08 11:21:39 -04:00
os-support int10: Do an mprotect(..,PROT_EXEC) on shmat()ed memory ranges. 2008-12-16 14:04:30 -05:00
parser Add missing file from previous commit. 2008-03-02 18:36:25 -05:00
rac Merge branch 'master' into XACE-SELINUX 2007-11-05 19:08:36 -05:00
ramdac devPrivates rework: convert CursorRec and CursorBits over to new interface. 2007-08-30 11:40:39 -04:00
shadowfb Merge branch 'master' into XACE-SELINUX 2007-11-05 19:08:36 -05:00
utils Check for __x86_64__ when we check for __amd64__ 2008-04-15 11:47:48 +10:00
vbe clean some "unused" warnings 2008-03-01 19:49:24 +02:00
vgahw XFree86: Remove usage of alloca 2007-11-05 14:34:42 +00:00
x86emu Implement bswap in x86emu. 2008-06-23 14:01:15 -04:00
xaa XAA PixmapOps: Sync before accessing unwrapped callbacks. 2008-12-16 14:05:54 -05:00
xf1bpp Remove the PaintWindow optimization. 2007-09-13 00:08:53 +00:00
xf4bpp Fix a stray use of ALLOCATE_LOCAL. 2008-03-14 14:46:34 -04:00
xf8_16bpp Remove smashing of CFLAGS from server build. 2006-09-18 12:11:18 -07:00
xf8_32bpp Merge branch 'master' into XACE-SELINUX 2007-11-05 19:08:36 -05:00
Makefile.am Add DRI2 module. 2008-02-14 19:53:49 -05:00
Options Initial revision 2003-11-14 16:48:57 +00:00
xorgconf.cpp Remove all traces of external RGB database (and Speedo) 2007-11-05 16:28:35 +00:00