summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Scheidegger <rscheidegger_lists@hispeed.ch>2005-02-09 02:22:39 +0000
committerRoland Scheidegger <rscheidegger_lists@hispeed.ch>2005-02-09 02:22:39 +0000
commitd5fadd6d86ae2a2f8c1bb55e36ab3d6d49649b46 (patch)
tree07faa0ef0c99d2dde1b15e66d08457e77ab94535
parent5ff35300e66a81ecc17c4e9396eb6d158f5c8e1b (diff)
do not enable color tiling on r300 chips and newer, since it doesn't work
(yet) (Bugzilla #2504)
-rw-r--r--src/radeon_driver.c24
1 files changed, 14 insertions, 10 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index b02c8d9d..f2c026b5 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -4572,7 +4572,16 @@ Bool RADEONPreInit(ScrnInfoPtr pScrn, int flags)
"Couldn't load fbdevhw module, not using framebuffer device\n");
}
}
-
+
+ if (!info->FBDev)
+ if (!RADEONPreInitInt10(pScrn, &pInt10))
+ goto fail;
+
+ RADEONPostInt10Check(pScrn, int10_save);
+
+ if (!RADEONPreInitConfig(pScrn))
+ goto fail;
+
info->allowColorTiling = xf86ReturnOptValBool(info->Options,
OPTION_COLOR_TILING, TRUE);
if ((info->allowColorTiling) && (info->IsSecondary)) {
@@ -4581,6 +4590,10 @@ Bool RADEONPreInit(ScrnInfoPtr pScrn, int flags)
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Color tiling disabled for 2nd head\n");
info->allowColorTiling = FALSE;
}
+ else if ((info->allowColorTiling) && (info->ChipFamily >= CHIP_FAMILY_R300)) {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Color tiling disabled for r300 and newer chips\n");
+ info->allowColorTiling = FALSE;
+ }
else if ((info->allowColorTiling) && (info->FBDev)) {
xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
"Color tiling not supported with UseFBDev option\n");
@@ -4592,15 +4605,6 @@ Bool RADEONPreInit(ScrnInfoPtr pScrn, int flags)
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Color tiling disabled\n");
}
- if (!info->FBDev)
- if (!RADEONPreInitInt10(pScrn, &pInt10))
- goto fail;
-
- RADEONPostInt10Check(pScrn, int10_save);
-
- if (!RADEONPreInitConfig(pScrn))
- goto fail;
-
RADEONPreInitDDC(pScrn);
RADEONGetBIOSInfo(pScrn, pInt10);