summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author <alex@samba.(none)>2006-07-20 22:25:05 -0400
committer <alex@samba.(none)>2006-07-20 22:25:05 -0400
commit3814db881be50faf0daf83b45ef23baeeef5b021 (patch)
tree30e1dfa13d3696867bb6603d42924f3324740b74 /src
parentec4fde5b4b6af410fcbf97062db77cc61eb332aa (diff)
no accel at depth 24 in dualhead mode in MX/IX chips (hardware limitation)
Diffstat (limited to 'src')
-rw-r--r--src/savage_driver.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/savage_driver.c b/src/savage_driver.c
index b230c93..d2725ec 100644
--- a/src/savage_driver.c
+++ b/src/savage_driver.c
@@ -1634,8 +1634,18 @@ static Bool SavagePreInit(ScrnInfoPtr pScrn, int flags)
psav->HasCRTC2 = FALSE;
}
- if ((psav->IsSecondary || psav->IsPrimary) && !psav->UseBIOS)
+ if ((psav->IsSecondary || psav->IsPrimary) && !psav->UseBIOS) {
xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "BIOS currently required for Dualhead mode setting.\n");
+ return FALSE;
+ }
+
+ if (psav->IsSecondary &&
+ (pScrn->bitsPerPixel > 16) &&
+ !psav->NoAccel &&
+ (psav->Chipset == S3_SAVAGE_MX)) {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "No acceleration in Dualhead mode at depth 24\n");
+ return FALSE;
+ }
/* maybe throw in some more sanity checks here */