diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2005-10-13 01:13:58 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2005-10-13 01:13:58 +0000 |
commit | 35a767590e481b15ae66dccc2dd91098992b2751 (patch) | |
tree | 5bc44f75c374983d07dd33b0e301defbc4b126ff | |
parent | a16dabd05ee7ec97877f07bd40ed83c01e72fc22 (diff) |
Fix stupid mistake in yesterday's allocator commit, would cause exa to
consider a random available memory size
-rw-r--r-- | exa/exa_offscreen.c | 3 | ||||
-rw-r--r-- | hw/xfree86/exa/exa_offscreen.c | 3 | ||||
-rw-r--r-- | hw/xfree86/exa/exaoffscreen.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/exa/exa_offscreen.c b/exa/exa_offscreen.c index 9ff88b4a2..c96199879 100644 --- a/exa/exa_offscreen.c +++ b/exa/exa_offscreen.c @@ -368,7 +368,8 @@ exaOffscreenInit (ScreenPtr pScreen) area->state = ExaOffscreenAvail; area->base_offset = pExaScr->info->card.offScreenBase; - area->size = pExaScr->info->card.memorySize - area->offset; + area->offset = area->base_offset; + area->size = pExaScr->info->card.memorySize - area->base_offset; area->save = NULL; area->next = NULL; area->score = 0; diff --git a/hw/xfree86/exa/exa_offscreen.c b/hw/xfree86/exa/exa_offscreen.c index 9ff88b4a2..c96199879 100644 --- a/hw/xfree86/exa/exa_offscreen.c +++ b/hw/xfree86/exa/exa_offscreen.c @@ -368,7 +368,8 @@ exaOffscreenInit (ScreenPtr pScreen) area->state = ExaOffscreenAvail; area->base_offset = pExaScr->info->card.offScreenBase; - area->size = pExaScr->info->card.memorySize - area->offset; + area->offset = area->base_offset; + area->size = pExaScr->info->card.memorySize - area->base_offset; area->save = NULL; area->next = NULL; area->score = 0; diff --git a/hw/xfree86/exa/exaoffscreen.c b/hw/xfree86/exa/exaoffscreen.c index 9ff88b4a2..c96199879 100644 --- a/hw/xfree86/exa/exaoffscreen.c +++ b/hw/xfree86/exa/exaoffscreen.c @@ -368,7 +368,8 @@ exaOffscreenInit (ScreenPtr pScreen) area->state = ExaOffscreenAvail; area->base_offset = pExaScr->info->card.offScreenBase; - area->size = pExaScr->info->card.memorySize - area->offset; + area->offset = area->base_offset; + area->size = pExaScr->info->card.memorySize - area->base_offset; area->save = NULL; area->next = NULL; area->score = 0; |