mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 18:20:05 +01:00
xf86SetDesiredModes(): Skip disabled CRTCs first thing.
This commit is contained in:
parent
459f34b089
commit
14726b776d
1 changed files with 5 additions and 3 deletions
|
|
@ -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…
Add table
Reference in a new issue