From aec3cbb1aba8bae5537534754ea57d21896d591b Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 23 Apr 2014 09:17:22 +0100 Subject: [PATCH] sna: Reuse any output not explicitly disconnected References: https://bugs.freedesktop.org/show_bug.cgi?id=77768 Signed-off-by: Chris Wilson --- src/sna/sna_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index e12b4885..5e8ea627 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -2777,7 +2777,7 @@ sna_output_init(ScrnInfoPtr scrn, struct sna_mode *mode, int num) /* stash the active CRTC id for our probe function */ output->crtc = NULL; - if (compat_conn.conn.connection == DRM_MODE_CONNECTED) + if (compat_conn.conn.connection != DRM_MODE_DISCONNECTED) output->crtc = (void *)(uintptr_t)enc.crtc_id; DBG(("%s: created output '%s' %d [%ld] (possible crtc:%x, possible clones:%x), edid=%d, dpms=%d, crtc=%lu\n",