diff options
author | Egbert Eich <eich@freedesktop.org> | 2008-06-22 11:34:27 +0200 |
---|---|---|
committer | Egbert Eich <eich@freedesktop.org> | 2008-06-22 11:34:27 +0200 |
commit | c38112c871ae54cb1003c324182abc12b7f70d6a (patch) | |
tree | 3997fa090e1e0328bab266215000890259d03fb8 | |
parent | 2bfccf62ac474980441c3b8ff8c6c8489ccecb46 (diff) |
VRAM Fix clamping to aperture.
The PCI aperture and thus the size of the mappable VRAM is only
256M on the current RadeonHD systems. Thus we need to clamp the
VRAM size to this.
-rw-r--r-- | src/rhd_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rhd_driver.c b/src/rhd_driver.c index 3108c8f..7e42204 100644 --- a/src/rhd_driver.c +++ b/src/rhd_driver.c @@ -1491,7 +1491,7 @@ rhdGetVideoRamSize(RHDPtr rhdPtr) else RamSize = (RHDRegRead(rhdPtr, R6XX_CONFIG_MEMSIZE)) >> 10; #ifdef XSERVER_LIBPCIACCESS - BARSize = rhdPtr->PciInfo->regions[RHD_FB_BAR].size; + BARSize = rhdPtr->PciInfo->regions[RHD_FB_BAR].size >> 10; #else BARSize = 1 << (rhdPtr->PciInfo->size[RHD_FB_BAR] - 10); #endif |