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