sna: Skip over hotunplugged outputs during CRTC set

These outputs are already marked as disconnected and so should be
excluded from the CRTC set, but to be safe skip over them.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-09-03 08:20:03 +01:00
parent 48a33fc379
commit ee7ed478a2
1 changed files with 7 additions and 0 deletions

View File

@ -981,6 +981,13 @@ sna_crtc_apply(xf86CrtcPtr crtc)
if (output->crtc != crtc)
continue;
/* Skip over any hotunplugged outputs so that we can
* recover in cases where the previous mode is now
* only partially valid.
*/
if (!to_sna_output(output)->id)
continue;
DBG(("%s: attaching output '%s' %d [%d] to crtc:%d (pipe %d) (possible crtc:%x, possible clones:%x)\n",
__FUNCTION__, output->name, i, to_connector_id(output),
sna_crtc->id, sna_crtc->pipe,