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;
|
xf86OutputPtr output = NULL;
|
||||||
int o;
|
int o;
|
||||||
|
|
||||||
|
/* Skip disabled CRTCs */
|
||||||
|
if (!crtc->enabled)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (config->output[config->compat_output]->crtc == crtc)
|
if (config->output[config->compat_output]->crtc == crtc)
|
||||||
output = config->output[config->compat_output];
|
output = config->output[config->compat_output];
|
||||||
else
|
else
|
||||||
|
@ -2255,9 +2259,7 @@ xf86SetDesiredModes (ScrnInfoPtr scrn)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
/* paranoia */
|
||||||
* Skip disabled crtcs
|
|
||||||
*/
|
|
||||||
if (!output)
|
if (!output)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user