summaryrefslogtreecommitdiff
path: root/src/radeon_driver.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-01-16 14:55:05 -0500
committerAdam Jackson <ajax@redhat.com>2008-01-17 19:09:35 -0500
commit3de2dc88cf26ff5932f11cecdf975777b8aa2a4a (patch)
tree51cae0e28e0eb770aa9f763737fdef5922b3e4cd /src/radeon_driver.c
parent2ba3562d2af911fdd90881049599e239d27260bc (diff)
Bump CRTC size limits on AVIVO chips so 30" displays work without tweaking.
Note that the CRTC size limits we're using right now are _not_ the hardware limits, they're just heuristics until we can resize the front buffer properly.
Diffstat (limited to 'src/radeon_driver.c')
-rw-r--r--src/radeon_driver.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index 98b8c684..a5127db7 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -2731,17 +2731,22 @@ Bool RADEONPreInit(ScrnInfoPtr pScrn, int flags)
if (crtc_max_Y > 8192)
crtc_max_Y = 8192;
} else {
+ /*
+ * note that these aren't really the CRTC limits, they're just
+ * heuristics until we have a better memory manager.
+ */
if (pScrn->videoRam <= 16384) {
crtc_max_X = 1600;
crtc_max_Y = 1200;
+ } else if (IS_R300_VARIANT) {
+ crtc_max_X = 2560;
+ crtc_max_Y = 1200;
+ } else if (IS_AVIVO_VARIANT) {
+ crtc_max_X = 2560;
+ crtc_max_Y = 1600;
} else {
- if (IS_R300_VARIANT || IS_AVIVO_VARIANT) {
- crtc_max_X = 2560;
- crtc_max_Y = 1200;
- } else {
- crtc_max_X = 2048;
- crtc_max_Y = 1200;
- }
+ crtc_max_X = 2048;
+ crtc_max_Y = 1200;
}
}
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Max desktop size set to %dx%d\n",