xserver/randr
Chris Wilson 7a53179425 randr/prime: Don't stop on the first pipe when disabling ReplaceScanoutPixmap
As we define sizeFits based on whether a CRTC is active, and skip trying
to redirect the scanout on a disable pipe, we then attempt to undo it
later and fail because crtc->scanout_pixmap != DRI2_Pixmap and
!sizeFits. Paper over this failure by skipping unredirected CRTC when
disabling.

v2: Unwind upon failure

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=84653
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Dave Airlie <airlied@redhat.com>
Reported-by: Christoph Haag <haagch@frickel.club>
Tested-by: Christoph Haag <haagch@frickel.club>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 245040f0d0)
2015-10-26 12:18:53 -04:00
..
Makefile.am randr: add provider object and provider property support (v6) 2012-07-06 22:16:02 +01:00
randr.c randr: Fix crash for NULL swap dispatch procs 2014-04-21 11:44:02 -07:00
randrstr.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
rrcrtc.c randr/prime: Don't stop on the first pipe when disabling ReplaceScanoutPixmap 2015-10-26 12:18:53 -04:00
rrdispatch.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
rrinfo.c randr: don't directly set changed bits in randr screen 2013-04-30 10:08:43 +10:00
rrmode.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
rroutput.c randr: attempt to fix primary on slave output (v2) 2015-01-26 16:23:10 -08:00
rrpointer.c randr: Fix logic in RRPointerToNearestCrtc 2014-07-30 14:40:17 -07:00
rrproperty.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
rrprovider.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
rrproviderproperty.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
rrscreen.c randr: remove chatty error messages 2015-06-03 09:05:36 -04:00
rrsdispatch.c randr: unvalidated lengths in RandR extension swapped procs [CVE-2014-8101] 2014-12-08 18:09:48 -08:00
rrtransform.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
rrtransform.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
rrxinerama.c randr: attempt to fix primary on slave output (v2) 2015-01-26 16:23:10 -08:00