summaryrefslogtreecommitdiff
path: root/src/intel_driver.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-05-24 11:58:46 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-05-24 12:03:14 +0100
commit3f3bde4f0c72f6f31aae322bcdc20b95eade6631 (patch)
treedac79f1ba63d2d5f8b235f8119659c0abc5a8458 /src/intel_driver.c
parent11db66fedf96f158cbbac8011a8ba0b29a20ba3a (diff)
uxa: Only consider an output valid if the kernel reports it attached
Reported-by: Kyle Hill <kyle.hill@tacomafia.net> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50078 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_driver.c')
-rw-r--r--src/intel_driver.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/intel_driver.c b/src/intel_driver.c
index d67d8c8e..b0554374 100644
--- a/src/intel_driver.c
+++ b/src/intel_driver.c
@@ -782,26 +782,6 @@ intel_init_initial_framebuffer(ScrnInfoPtr scrn)
return TRUE;
}
-Bool intel_crtc_on(xf86CrtcPtr crtc)
-{
- ScrnInfoPtr scrn = crtc->scrn;
- xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(scrn);
- int i;
-
- 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];
- if (output->crtc == crtc &&
- intel_output_dpms_status(output) == DPMSModeOn)
- return TRUE;
- }
-
- return FALSE;
-}
-
static void
intel_flush_callback(CallbackListPtr *list,
pointer user_data, pointer call_data)