xf86SetDesiredModes(): Skip disabled CRTCs first thing.
This commit is contained in:
parent
459f34b089
commit
14726b776d
|
@ -2244,6 +2244,10 @@ xf86SetDesiredModes (ScrnInfoPtr scrn)
|
|||
xf86OutputPtr output = NULL;
|
||||
int o;
|
||||
|
||||
/* Skip disabled CRTCs */
|
||||
if (!crtc->enabled)
|
||||
continue;
|
||||
|
||||
if (config->output[config->compat_output]->crtc == crtc)
|
||||
output = config->output[config->compat_output];
|
||||
else
|
||||
|
@ -2255,9 +2259,7 @@ xf86SetDesiredModes (ScrnInfoPtr scrn)
|
|||
break;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Skip disabled crtcs
|
||||
*/
|
||||
/* paranoia */
|
||||
if (!output)
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user