xf86-video-ati: Branch 'master'

Alex Deucher agd5f at kemper.freedesktop.org
Mon Jun 25 13:28:04 PDT 2007


 src/radeon_video.c |   16 +++++-----------
 1 files changed, 5 insertions(+), 11 deletions(-)

New commits:
diff-tree 5b5b90c2cea7e36895354f5872acd3fc769653f9 (from 92e65d5e0d6817ff4c9a08020a0a9b3a8c3c98b0)
Author: Alex Deucher <alex at t41p.hsd1.va.comcast.net>
Date:   Mon Jun 25 16:27:54 2007 -0400

    RADEON: fix possible segfault on mobility chips with MM tables
    
    spotted by Stefan Buehler

diff --git a/src/radeon_video.c b/src/radeon_video.c
index 390df89..2f8bec5 100644
--- a/src/radeon_video.c
+++ b/src/radeon_video.c
@@ -1189,17 +1189,11 @@ static void RADEONSetupTheatre(ScrnInfoP
 
     /* Go and find Rage Theatre, if it exists */
     
-    switch(info->Chipset){
-    	case PCI_CHIP_RADEON_LY:
-	case PCI_CHIP_RADEON_LZ:
-	        xf86DrvMsg(pScrn->scrnIndex,X_INFO,"Detected Radeon Mobility M6, not scanning for Rage Theatre\n");
-		break;
-	case PCI_CHIP_RADEON_LW:
-	        xf86DrvMsg(pScrn->scrnIndex,X_INFO,"Detected Radeon Mobility M7, not scanning for Rage Theatre\n");
-		break;
-	default:
-	    pPriv->theatre=xf86_DetectTheatre(pPriv->VIP);
-	}
+    if (info->IsMobility)
+	xf86DrvMsg(pScrn->scrnIndex,X_INFO,"Detected Radeon Mobility, not scanning for Rage Theatre\n");
+    else
+	pPriv->theatre=xf86_DetectTheatre(pPriv->VIP);
+
 
     if(pPriv->theatre==NULL)return;
     


More information about the xorg-commit mailing list