xserver/hw/xfree86/modes
Aaron Plattner bdd1e22cbd 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>
2013-07-25 11:15:53 -07:00
..
Makefile.am Eliminate the use of xf86Rename.h 2013-04-24 10:22:20 -07:00
xf86Crtc.c xfree86: don't enable anything in xf86InitialConfiguration for GPU screens 2013-05-06 09:34:27 +10:00
xf86Crtc.h Eliminate the use of xf86Rename.h 2013-04-24 10:22:20 -07:00
xf86Cursors.c Abstract cursor refcounting 2013-05-15 19:17:57 +10:00
xf86DiDGA.c xf86dga: handle DGAAvailable for gpu screens. (v2) 2012-07-07 10:37:10 +01:00
xf86DisplayIDModes.c Define prototypes for hw/xfree86/modes/xf86Modes.c only in xf86Modes.h. 2013-04-08 09:19:34 -07:00
xf86EdidModes.c Fix up formatting of initializers for arrays of structs 2012-08-06 15:22:53 -07:00
xf86Modes.c xfree86: Strip dangling pointers from desiredMode 2012-07-11 15:55:22 -07:00
xf86Modes.h Eliminate the use of xf86Rename.h 2013-04-24 10:22:20 -07:00
xf86RandR12.c xfree86: detach scanout pixmaps when detaching output GPUs 2013-07-25 11:15:53 -07:00
xf86RandR12.h Eliminate the use of xf86Rename.h 2013-04-24 10:22:20 -07:00
xf86Rotate.c xf86: make sure rotate calcs are done on the right screen boundaries 2012-07-07 10:37:45 +01:00
xf86cvt.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xf86gtf.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00