xf86-video-intel: src/sna/sna_display.c

Chris Wilson ickle at kemper.freedesktop.org
Wed Feb 1 10:09:45 UTC 2017


 src/sna/sna_display.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 9fe04af4bce3057e3e94a6bf36a3d8d2e48d592c
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Wed Feb 1 10:00:52 2017 +0000

    sna: Explicitly disable unused CRTC
    
    This should be performed via DisableUnusedFunctions, but whilst we are
    sanity checking, checking that the CRTC we believe to be off actually
    are seems worthwhile.
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 162686f..a31e0e5 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -5259,8 +5259,10 @@ static bool disable_unused_crtc(struct sna *sna)
 	for (c = 0; c < sna->mode.num_real_crtc; c++) {
 		xf86CrtcPtr crtc = config->crtc[c];
 
-		if (!crtc->enabled)
+		if (!crtc->enabled) {
+			sna_crtc_disable(crtc, false);
 			continue;
+		}
 
 		for (o = 0; o < sna->mode.num_real_output; o++) {
 			xf86OutputPtr output = config->output[o];


More information about the xorg-commit mailing list