make this exactly like XFree86 .. allows 4x to work
authorDave Airlie <airliedfreedesktop.org>
Tue, 13 Apr 2004 04:58:10 +0000 (04:58 +0000)
committerDave Airlie <airliedfreedesktop.org>
Tue, 13 Apr 2004 04:58:10 +0000 (04:58 +0000)
src/mesa/drivers/dri/radeon/server/radeon_dri.c

index 381fa658b1576a01fb57921d05516166322bad01..e7c50966417c1f4c721aa90bbaa5d12758b59780 100644 (file)
@@ -321,10 +321,6 @@ static int RADEONDRIAgpInit( const DRIDriverContext *ctx, RADEONInfoPtr info)
       return 0;
    }
     
-   /* Workaround for some hardware bugs */
-   if (info->ChipFamily < CHIP_FAMILY_R200)
-      OUTREG(RADEON_AGP_CNTL, INREG(RADEON_AGP_CNTL) | 0x000e0020);
-
    /* Modify the mode if the default mode is not appropriate for this
     * particular combination of graphics card and AGP chipset.
     */
@@ -344,7 +340,11 @@ static int RADEONDRIAgpInit( const DRIDriverContext *ctx, RADEONInfoPtr info)
       drmAgpRelease(ctx->drmFD);
       return 0;
    }
-    
+
+   /* Workaround for some hardware bugs */
+   if (info->ChipFamily < CHIP_FAMILY_R200)
+      OUTREG(RADEON_AGP_CNTL, INREG(RADEON_AGP_CNTL) | 0x000e0000);
+
    info->gartOffset = 0;
 
    if ((ret = drmAgpAlloc(ctx->drmFD, info->gartSize*1024*1024, 0, NULL,