diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-01-03 23:06:14 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-01-03 23:06:14 +0000 |
commit | 6d50f5a140dbefdf86eb25d18d08473aa7e42acc (patch) | |
tree | cb2f446f7f7067dc7cd47364ee3d65cb786d134f | |
parent | 145c42a101c3150fb1e2cae8a1780b26e8b56f42 (diff) | |
download | xf86-video-intel-6d50f5a140dbefdf86eb25d18d08473aa7e42acc.tar.gz xf86-video-intel-6d50f5a140dbefdf86eb25d18d08473aa7e42acc.tar.bz2 xf86-video-intel-6d50f5a140dbefdf86eb25d18d08473aa7e42acc.zip |
If the crtc is not enabled, then it can't be on
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/intel_driver.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intel_driver.c b/src/intel_driver.c index f09203a7d..1275e4bc9 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]; |