diff options
author | Bartosz Kosiorek <gang65@poczta.onet.pl> | 2010-12-01 20:24:21 +0000 |
---|---|---|
committer | Bartosz Kosiorek <gang65@poczta.onet.pl> | 2010-12-01 20:24:21 +0000 |
commit | 242f8ee3b7e76e66091708547deb385ab355cd8a (patch) | |
tree | 405635accfcc9782408c10aec289142fc22260f2 | |
parent | e1206f5f3dab0cdd47b1b51d2451f4142627b238 (diff) |
Add workaround for memory autodetection
-rw-r--r-- | src/via_driver.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/via_driver.c b/src/via_driver.c index ec26adf..f8198d5 100644 --- a/src/via_driver.c +++ b/src/via_driver.c @@ -1065,10 +1065,17 @@ VIAPreInit(ScrnInfoPtr pScrn, int flags) } } - if (from == X_PROBED) + if (from == X_PROBED) { xf86DrvMsg(pScrn->scrnIndex, from, "Probed amount of VideoRAM = %d kB\n", pScrn->videoRam); + if (pScrn->videoRam < 16384) { + xf86DrvMsg(pScrn->scrnIndex, X_WARNING, + "Memory size detection failed: using 16 MB.\n"); + pScrn->videoRam = 16 << 10; + } + } + if (!VIASetupDefaultOptions(pScrn)) { VIAFreeRec(pScrn); return FALSE; |