diff options
author | Eric Anholt <eric@anholt.net> | 2010-02-19 08:10:17 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-02-20 12:55:13 -0500 |
commit | a4180eabfa00c256494ed09aa336a17605c49a8a (patch) | |
tree | cec89fa817c07f85d5b5c6fe73d7b325b7fa00c2 /src/i830_driver.c | |
parent | 03657d4a698e0a25ab3863a15ad4c8b9d64dbb9a (diff) |
Remove stale junk in VideoRam setup, noticed by clang.
Diffstat (limited to 'src/i830_driver.c')
-rw-r--r-- | src/i830_driver.c | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c index 32d18996..c88195ce 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -1127,35 +1127,18 @@ I830ScreenInit(int scrnIndex, ScreenPtr screen, int argc, char **argv) * actual memory allocation, so alignment and things will cause less than * VideoRam to be actually used. */ - if (intel->pEnt->device->videoRam == 0) { - from = X_DEFAULT; - scrn->videoRam = intel->FbMapSize / KB(1); - } else { -#if 0 - from = X_CONFIG; - scrn->videoRam = intel->pEnt->device->videoRam; -#else - /* Disable VideoRam configuration, at least for now. Previously, - * VideoRam was necessary to avoid overly low limits on allocated - * memory, so users created larger, yet still small, fixed allocation - * limits in their config files. Now, the driver wants to allocate more, - * and the old intention of the VideoRam lines that had been entered is - * obsolete. - */ - from = X_DEFAULT; - scrn->videoRam = intel->FbMapSize / KB(1); - + scrn->videoRam = intel->FbMapSize / KB(1); + if (intel->pEnt->device->videoRam != 0) { if (scrn->videoRam != intel->pEnt->device->videoRam) { xf86DrvMsg(scrn->scrnIndex, X_WARNING, - "VideoRam configuration found, which is no longer " - "recommended.\n"); + "VideoRam configuration found, which is no " + "longer used.\n"); xf86DrvMsg(scrn->scrnIndex, X_INFO, - "Continuing with default %dkB VideoRam instead of %d " - "kB.\n", + "Continuing with (ignored) %dkB VideoRam " + "instead of %d kB.\n", scrn->videoRam, intel->pEnt->device->videoRam); } -#endif } scrn->videoRam = device->regions[fb_bar].size / 1024; |