xf86-video-nv: src/g80_driver.c
Aaron Plattner
aplattner at kemper.freedesktop.org
Mon Apr 28 14:44:22 PDT 2008
src/g80_driver.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit c0c7d610800161976fd7dce064beae05d2d4195b
Author: Aaron Plattner <aplattner at nvidia.com>
Date: Mon Apr 28 14:43:12 2008 -0700
I win at C.
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 */
More information about the xorg-commit
mailing list