summaryrefslogtreecommitdiff
path: root/src/i830_driver.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2006-02-27 14:55:26 +1100
committerDave Airlie <airlied@linux.ie>2006-06-02 09:55:13 +1000
commit727492ed916317b272cf216067a6111714781bf3 (patch)
tree12e0016b4fcb7c0b5c313e7bd92feb4602b63e5a /src/i830_driver.c
parentdb400cb0fa05ec7cf5337e9b849ec15968f745b1 (diff)
i830: use MAX_DISPLAY_ defines, increase MaxClock
This allows it to attempt to set 1680x1050 resolution
Diffstat (limited to 'src/i830_driver.c')
-rw-r--r--src/i830_driver.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c
index 7743b2fe..9f35d850 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -3305,7 +3305,7 @@ I830BIOSPreInit(ScrnInfoPtr pScrn, int flags)
pI830->MaxClock = 136000;
break;
case 32: /* not supported */
- pI830->MaxClock = 86000;
+ pI830->MaxClock = 150000;
}
clockRanges = xnfcalloc(sizeof(ClockRange), 1);
@@ -3319,8 +3319,8 @@ I830BIOSPreInit(ScrnInfoPtr pScrn, int flags)
i = xf86ValidateModes(pScrn, pScrn->monitor->Modes,
pScrn->display->modes, clockRanges,
- 0, 320, 1600, 64 * pScrn->bitsPerPixel,
- 200, 1200,
+ 0, 320, MAX_DISPLAY_PITCH, 64 * pScrn->bitsPerPixel,
+ 200, MAX_DISPLAY_HEIGHT,
pScrn->display->virtualX, pScrn->display->virtualY,
memsize, LOOKUP_BEST_REFRESH);
}
@@ -4369,6 +4369,9 @@ I830SetupDSPRegisters(ScrnInfoPtr pScrn, DisplayModePtr pMode)
}
}
+#if 1
+ I830DumpModeDebugInfo(pScrn);
+#endif
}
static Bool
@@ -4436,10 +4439,6 @@ I830VESASetMode(ScrnInfoPtr pScrn, DisplayModePtr pMode)
I830SetupDSPRegisters(pScrn, pMode);
-#if 1
- I830DumpModeDebugInfo(pScrn);
-#endif
-
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Mode bandwidth is %d Mpixel/s\n",
pMode->HDisplay * pMode->VDisplay * refresh / 1000000);