xserver/hw
Aaron Plattner 2bea21ea7e xfree86: detach scanout pixmaps when detaching output GPUs
Commit 8f4640bdb9 fixed a bit of a
chicken-and-egg problem by detaching GPU screens when their providers
are destroyed, which happens before CloseScreen is called.  However,
this created a new problem: the GPU screen tears down its RandR crtc
objects during CloseScreen and if one of them is active, it tries to
detach the scanout pixmap then.  This crashes because
RRCrtcDetachScanoutPixmap tries to get the master screen's screen
pixmap, but crtc->pScreen->current_master is already NULL at that
point.

It doesn't make sense for an unbound GPU screen to still be scanning
out its former master screen's pixmap, so detach them first when the
provider is destroyed.

Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit bdd1e22cbd)
2013-11-05 13:22:16 +10:00
..
dmx dmx: don't include dmx-config.h from xdmxconfig (#37502) 2013-02-08 13:47:17 +10:00
kdrive kdrive: fix build error on gcc 4.8 for out-of-bounds array access 2013-09-09 13:47:31 -06:00
vfb vfb: Initialize the GLX extension again. 2012-11-21 11:13:55 +11:00
xfree86 xfree86: detach scanout pixmaps when detaching output GPUs 2013-11-05 13:22:16 +10:00
xnest dix: Remove #includes of mibstore.h 2012-09-23 10:31:27 -07:00
xquartz XQuartz: Ensure <dix-config.h> is included in capabilities.c 2013-02-14 09:20:46 -08:00
xwin Merge remote-tracking branch 'jturney/xserver-next' 2013-01-20 15:58:38 -08:00
Makefile.am Catch errors in recursive relink targets 2010-03-22 00:45:57 -05:00