summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airlied@starflyer-ubuntu.(none)>2006-09-18 06:35:28 +1000
committerDave Airlie <airlied@starflyer-ubuntu.(none)>2006-09-18 06:35:28 +1000
commita15ac59c4d1a15380910be2a7438111b09161c81 (patch)
tree9c39c23841070b5a3bbae22481b7c5d8a604e1b3 /src
parentd80ea2d67b63ea2f2ce0277952af186b69b19e7d (diff)
radeon: re-add ATI patch for rn50 modes
Diffstat (limited to 'src')
-rw-r--r--src/radeon_driver.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index 532a857e..3fa10c5a 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -1108,9 +1108,12 @@ static void RADEONGetClockInfo(ScrnInfoPtr pScrn)
if (info->ChipFamily == CHIP_FAMILY_RV100 && !info->HasCRTC2) {
/* Avoid RN50 corruption due to memory bandwidth starvation.
* 18 is an empirical value based on the databook and Windows driver.
- */
+ *
+ * Empirical value changed to 24 to raise pixel clock limit and
+ * allow higher resolution modes on capable monitors.
+ */
pll->max_pll_freq = min(pll->max_pll_freq,
- 18 * info->mclk * 100 / pScrn->bitsPerPixel *
+ 24 * info->mclk * 100 / pScrn->bitsPerPixel *
info->RamWidth / 16);
}