summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2005-08-05 03:52:28 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2005-08-05 03:52:28 +0000
commit75a0deb6e9d1a5bc698ea67b338c56bc99c1b2c0 (patch)
tree037061621cfa263c42af7efc2ad44142229a9bc5 /src
parentfb4033bd2662c199d7e4f0e3df7c4a0fb9870984 (diff)
Bug #3987 <https://bugs.freedesktop.org/show_bug.cgi?id=3987> Patch #3264
<https://bugs.freedesktop.org/attachment.cgi?id=3264> Workaround for 512 Meg video cards (can only map 256 Meg of it). (Mark Vojkovich)
Diffstat (limited to 'src')
-rw-r--r--src/nv_setup.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nv_setup.c b/src/nv_setup.c
index 29a1e0c..60d63dd 100644
--- a/src/nv_setup.c
+++ b/src/nv_setup.c
@@ -37,7 +37,7 @@
|* *|
\***************************************************************************/
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/nv/nv_setup.c,v 1.46 2005/07/09 00:53:00 mvojkovi Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/nv/nv_setup.c,v 1.47 2005/08/03 17:39:31 mvojkovi Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -306,6 +306,9 @@ static void nv10GetConfig (NVPtr pNv)
pNv->RamAmountKBytes = (pNv->PFB[0x020C/4] & 0xFFF00000) >> 10;
}
+ if(pNv->RamAmountKBytes > 256*1024)
+ pNv->RamAmountKBytes = 256*1024;
+
pNv->CrystalFreqKHz = (pNv->PEXTDEV[0x0000/4] & (1 << 6)) ? 14318 : 13500;
if(pNv->twoHeads && (implementation != 0x0110))