summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2008-04-28 14:43:12 -0700
committerAaron Plattner <aplattner@nvidia.com>2008-04-28 14:44:03 -0700
commitc0c7d610800161976fd7dce064beae05d2d4195b (patch)
tree54f000e79de6f8d7085c679e9e36caee9143c91f
parentb62a7cf70db356918aa04fb3f30bf1fd1142b9d5 (diff)
I win at 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 */