diff options
author | Alex Deucher <alex@t41p.hsd1.va.comcast.net> | 2007-06-04 21:13:16 -0400 |
---|---|---|
committer | Alex Deucher <alex@t41p.hsd1.va.comcast.net> | 2007-06-04 21:13:16 -0400 |
commit | f54ad565a69deb52547fd04e123f56fc1294cd0a (patch) | |
tree | 3c9c750c102ef6dd052b41bea82dbbc31d84e862 | |
parent | 687879bff716ad01f9f158860deb8ba770faab99 (diff) |
RADEON: no need to go through all the crtcs, we've got what we need
-rw-r--r-- | src/radeon_output.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/radeon_output.c b/src/radeon_output.c index b13fd298..2f5674fe 100644 --- a/src/radeon_output.c +++ b/src/radeon_output.c @@ -967,18 +967,11 @@ radeon_mode_set(xf86OutputPtr output, DisplayModePtr mode, { ScrnInfoPtr pScrn = output->scrn; RADEONInfoPtr info = RADEONPTR(pScrn); - xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(pScrn); RADEONOutputPrivatePtr radeon_output = output->driver_private; - int i; + xf86CrtcPtr crtc = output->crtc; + RADEONCrtcPrivatePtr radeon_crtc = crtc->driver_private; - /* get the outputs connected to this CRTC */ - for (i = 0; i < xf86_config->num_crtc; i++) { - xf86CrtcPtr crtc = xf86_config->crtc[i]; - RADEONCrtcPrivatePtr radeon_crtc = crtc->driver_private; - if (output->crtc == crtc) { - RADEONInitOutputRegisters(pScrn, &info->ModeReg, adjusted_mode, output, radeon_crtc->crtc_id); - } - } + RADEONInitOutputRegisters(pScrn, &info->ModeReg, adjusted_mode, output, radeon_crtc->crtc_id); switch(radeon_output->MonType) { case MT_LCD: |