summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkeithw <keithw>2002-10-10 08:43:39 +0000
committerkeithw <keithw>2002-10-10 08:43:39 +0000
commit0df018612b15c18f189c3766b2c654922511b5db (patch)
treefeb45550131d378cab5cf32fc452dd94d00ec972
parent842002bcd7b1931877bb27fc408cfc0c296f6825 (diff)
Remove bogus restriction on AgpSize -- there's no need for this
quantity to be a power of two.
-rw-r--r--xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.c b/xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.c
index 50ed7a69a..12553f7b4 100644
--- a/xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.c
+++ b/xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.c
@@ -1950,16 +1950,7 @@ static Bool RADEONPreInitDRI(ScrnInfoPtr pScrn)
if (xf86GetOptValInteger(info->Options,
OPTION_AGP_SIZE, (int *)&(info->agpSize))) {
- switch (info->agpSize) {
- case 4:
- case 8:
- case 16:
- case 32:
- case 64:
- case 128:
- case 256:
- break;
- default:
+ if (info->agpSize < 4 || info->agpSize > 256) {
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
"Illegal AGP size: %d MB\n", info->agpSize);
return FALSE;
@@ -2022,7 +2013,8 @@ static Bool RADEONPreInitDRI(ScrnInfoPtr pScrn)
if (!xf86LoadSubModule(pScrn, "shadow")) {
info->allowPageFlip = 0;
- xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Disabling page flipping\n");
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
+ "Couldn't load shadowfb module: disabling page flipping\n");
}
else if (info->noBackBuffer) {
info->allowPageFlip = 0;