xf86-video-ati: Branch 'master'

Dave Airlie airlied at kemper.freedesktop.org
Mon Sep 25 14:36:41 EEST 2006


 src/radeon_driver.c |   39 ++++++---------------------------------
 1 files changed, 6 insertions(+), 33 deletions(-)

New commits:
diff-tree 74c725bd86348b5bf9bba0c50e8a6a7885d7ff7b (from 9827afaa40720a58e2fc029c0bf92ad2fe223d11)
Author: Dave Airlie <airlied at linux.ie>
Date:   Mon Sep 25 11:35:32 2006 +1000

    radeon: cleanup some bits from superpatch

diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index e98a259..f6198ba 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -6464,28 +6464,10 @@ static Bool RADEONInitCrtcRegisters(Scrn
 			      ? RADEON_CRTC_INTERLACE_EN
 			      : 0));
 
-    /* Don't try to be smart and unconditionally enable the analog output
-     * for now as the dodgy code to handle it for the second head doesn't
-     * work. This will be correctly fixed when Alex' megapatch gets in that
-     * reworks the whole output mapping
-     */
-#if 0
-    if ((info->DisplayType == MT_DFP) ||
-	(info->DisplayType == MT_LCD)) {
-	save->crtc_ext_cntl = RADEON_VGA_ATI_LINEAR | RADEON_XCRT_CNT_EN;
-	save->crtc_gen_cntl &= ~(RADEON_CRTC_DBL_SCAN_EN |
-				 RADEON_CRTC_CSYNC_EN |
-				 RADEON_CRTC_INTERLACE_EN);
-    } else
-#endif
-    {
-	save->crtc_ext_cntl = (RADEON_VGA_ATI_LINEAR |
-			       RADEON_XCRT_CNT_EN |
-			       RADEON_CRTC_CRT_ON |
-			       RADEON_CRTC_VSYNC_DIS |
-			       RADEON_CRTC_HSYNC_DIS |
-			       RADEON_CRTC_DISPLAY_DIS);
-    }
+    save->crtc_ext_cntl |= (RADEON_CRTC_CRT_ON |
+			    RADEON_CRTC_VSYNC_DIS |
+			    RADEON_CRTC_HSYNC_DIS |
+			    RADEON_CRTC_DISPLAY_DIS);
 
     save->surface_cntl = 0;
     save->disp_merge_cntl = info->SavedReg.disp_merge_cntl;
@@ -6772,18 +6754,9 @@ static Bool RADEONInitCrtc2Registers(Scr
           save->crtc2_offset_cntl &= ~RADEON_CRTC_TILE_EN;
     }
 
-    /* this should be right */
-    if (0 /*info->MergedFB*/) {
-    save->crtc2_pitch  = (((info->CRT2pScrn->displayWidth * pScrn->bitsPerPixel) +
-			   ((pScrn->bitsPerPixel * 8) -1)) /
-			  (pScrn->bitsPerPixel * 8));
-    save->crtc2_pitch |= save->crtc2_pitch << 16;
-    } else {
-    save->crtc2_pitch  = (((pScrn->displayWidth * pScrn->bitsPerPixel) +
-			   ((pScrn->bitsPerPixel * 8) -1)) /
-			  (pScrn->bitsPerPixel * 8));
+    save->crtc2_pitch  = ((pScrn->displayWidth * pScrn->bitsPerPixel) +
+			  ((pScrn->bitsPerPixel * 8) -1)) / (pScrn->bitsPerPixel * 8);
     save->crtc2_pitch |= save->crtc2_pitch << 16;
-    }
 
     save->crtc2_gen_cntl = (RADEON_CRTC2_EN
 			    | RADEON_CRTC2_CRT2_ON



More information about the xorg-commit mailing list