mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-19 17:00:36 +01:00
xf86SetDesiredModes(): Skip disabled CRTCs first thing.
(cherry picked from commit 14726b776d)
This commit is contained in:
parent
bedcf98558
commit
95985256ef
1 changed files with 5 additions and 3 deletions
|
|
@ -2188,6 +2188,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
|
||||
|
|
@ -2199,9 +2203,7 @@ xf86SetDesiredModes (ScrnInfoPtr scrn)
|
|||
break;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Skip disabled crtcs
|
||||
*/
|
||||
/* paranoia */
|
||||
if (!output)
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue