diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-08-09 10:13:58 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-08-09 10:13:58 +0100 |
commit | 19c48d3b3f33582baa87a9b3a9189e320e4cea45 (patch) | |
tree | 25d7624845e7cf734d35bec40682961d1c63be1a /src/intel_display.c | |
parent | 6304cb048c745be81dae13f1d936996e04eaa530 (diff) |
display: outputs are enabled automatically by KMS
When an output is attached to a crtc and that crtc is enabled, the
output is automatically enabled so we can remove the redundant manual
dpms on.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_display.c')
-rw-r--r-- | src/intel_display.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/intel_display.c b/src/intel_display.c index 352b8a96..6e7ec2a0 100644 --- a/src/intel_display.c +++ b/src/intel_display.c @@ -326,7 +326,7 @@ intel_crtc_apply(xf86CrtcPtr crtc) uint32_t *output_ids; int output_count = 0; int fb_id, x, y; - int i, ret; + int i, ret = FALSE; output_ids = calloc(sizeof(uint32_t), xf86_config->num_output); if (!output_ids) @@ -377,26 +377,14 @@ intel_crtc_apply(xf86CrtcPtr crtc) } else ret = TRUE; - /* Turn on any outputs on this crtc that may have been disabled */ - for (i = 0; i < xf86_config->num_output; i++) { - xf86OutputPtr output = xf86_config->output[i]; - - if (output->crtc != crtc) - continue; - - intel_output_dpms(output, DPMSModeOn); - } - intel_set_gem_max_sizes(scrn); if (scrn->pScreen) xf86_reload_cursors(scrn->pScreen); - return ret; - done: free(output_ids); - return FALSE; + return ret; } static Bool |