diff options
Diffstat (limited to 'src/g80_driver.c')
-rw-r--r-- | src/g80_driver.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/g80_driver.c b/src/g80_driver.c index 1a83544..99ea737 100644 --- a/src/g80_driver.c +++ b/src/g80_driver.c @@ -367,7 +367,8 @@ G80PreInit(ScrnInfoPtr pScrn, int flags) } pNv->architecture = pNv->reg[0] >> 20 & 0x1ff; - pNv->videoRam = pNv->RamAmountKBytes = (pNv->reg[0x0010020C/4] & 0xFFF00000) >> 10; + tmp = pNv->reg[0x0010020C/4]; + pNv->videoRam = pNv->RamAmountKBytes = tmp >> 10 | (tmp & 1) << 22; /* Determine the size of BAR1 */ /* Some configs have BAR1 < total RAM < 256 MB */ |