If the crtc is not enabled, then it can't be on

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-01-03 23:06:14 +00:00
parent 145c42a101
commit 6d50f5a140
1 changed files with 3 additions and 0 deletions

View File

@ -811,6 +811,9 @@ Bool intel_crtc_on(xf86CrtcPtr crtc)
xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(scrn);
int i, active_outputs = 0;
if (!crtc->enabled)
return FALSE;
/* Kernel manages CRTC status based out output config */
for (i = 0; i < xf86_config->num_output; i++) {
xf86OutputPtr output = xf86_config->output[i];