sna: Reuse any output not explicitly disconnected

References: https://bugs.freedesktop.org/show_bug.cgi?id=77768
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-04-23 09:17:22 +01:00
parent 4ed733d16a
commit aec3cbb1ab
1 changed files with 1 additions and 1 deletions

View File

@ -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",