[xrandr 2/2] Mark all CRTC as currently unused for second picking CRTC pass

Adam Jackson ajax at nwnk.net
Wed Jul 1 08:13:58 PDT 2015


On Thu, 2015-06-18 at 08:27 +0100, Chris Wilson wrote:
> We perform two passes over the CRTC in order to find the preferred CRTC
> for each enabled output. In the first pass, we try to preserve the
> existing output <-> CRTC relationships (to avoid unnecessary flicker).
> If that pass fails, we try again but with all outputs first disabled.
> However, the logic to preserve an active CRTC was not disabled along
> with the outputs - meaning that if one was active but its associated
> output was disabled by the user, then that CRTC would remain unavailable
> for other outputs. The result would be that we would try to assign more
> CRTC than available (i.e. if the user request 3 new HDMI outputs on a
> system with only 3 CRTC, and wished to switch off an active internal
> panel, we would report "cannot find CRTC" even though that configuration
> could be established.)
> 
> Reported-and-tested-by: Nathan Schulte <nmschulte at gmail.com>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

Pushed this and the previous, thanks.

To ssh://git.freedesktop.org/git/xorg/app/xrandr
   09989b0..3d03be7  master -> master

- ajax


More information about the xorg-devel mailing list