diff options
author | <alex@samba.(none)> | 2006-07-18 00:11:32 -0400 |
---|---|---|
committer | <alex@samba.(none)> | 2006-07-18 00:11:32 -0400 |
commit | ec4fde5b4b6af410fcbf97062db77cc61eb332aa (patch) | |
tree | 8973a206ac543093123276a3357ad95de4125c4c /src/savage_driver.c | |
parent | 03bb33088d5c905d1c2cf764ba3894405670b9f4 (diff) |
make sure to map full FB in dualhead mode. fixes some issues with dualhead.
other dualhead drivers may need this.
Diffstat (limited to 'src/savage_driver.c')
-rw-r--r-- | src/savage_driver.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/savage_driver.c b/src/savage_driver.c index 8d5646c..b230c93 100644 --- a/src/savage_driver.c +++ b/src/savage_driver.c @@ -1817,6 +1817,7 @@ static Bool SavagePreInit(ScrnInfoPtr pScrn, int flags) psav->videoRambytes = pScrn->videoRam * 1024; psav->CursorKByte = (psav->videoRambytes >> 10) - 4; psav->endfb = (psav->CursorKByte << 10) - 1; + psav->videoRambytes *= 2; xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Using %dk of videoram for primary head\n", pScrn->videoRam); @@ -1825,7 +1826,7 @@ static Bool SavagePreInit(ScrnInfoPtr pScrn, int flags) if(psav->IsSecondary) { pScrn->videoRam /= 2; - psav->videoRambytes = pScrn->videoRam * 1024; + /*psav->videoRambytes = pScrn->videoRam * 1024;*/ xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Using %dk of videoram for secondary head\n", pScrn->videoRam); @@ -2907,7 +2908,7 @@ static Bool SavageMapFB(ScrnInfoPtr pScrn) else pScrn->fbOffset = 0; - pScrn->memPhysBase = psav->PciInfo->memBase[0] + pScrn->fbOffset; + pScrn->memPhysBase = psav->PciInfo->memBase[0]; return TRUE; } |