From 6d50f5a140dbefdf86eb25d18d08473aa7e42acc Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 3 Jan 2011 23:06:14 +0000 Subject: [PATCH] If the crtc is not enabled, then it can't be on Signed-off-by: Chris Wilson --- src/intel_driver.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/intel_driver.c b/src/intel_driver.c index f09203a7..1275e4bc 100644 --- a/src/intel_driver.c +++ b/src/intel_driver.c @@ -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];