diff options
author | Egbert Eich <eich@suse.de> | 2004-08-27 21:44:54 +0000 |
---|---|---|
committer | Egbert Eich <eich@suse.de> | 2004-08-27 21:44:54 +0000 |
commit | 89d702763875831604751bac396c3d2400ec59b6 (patch) | |
tree | b16f985ad375617dbf956573fc88e2a94419de7d | |
parent | 971755765d6ef9cadf11127478af59189034d356 (diff) |
Fix for XV memory allocation: Also use tiled area for allocation even if itXORG-6_7_99_903
hasn't been used before.
-rw-r--r-- | hw/xfree86/common/xf86fbman.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/hw/xfree86/common/xf86fbman.c b/hw/xfree86/common/xf86fbman.c index b7c4afa1c..ee286d172 100644 --- a/hw/xfree86/common/xf86fbman.c +++ b/hw/xfree86/common/xf86fbman.c @@ -1095,12 +1095,10 @@ localQueryLargestOffscreenLinear( *size = 0; - if (!offman->LinearAreas) return FALSE; - pLink = offman->LinearAreas; - pLinkRet = pLink; - if (!pLink->area) { + if (pLink && !pLink->area) { + pLinkRet = pLink; while (pLink) { if (pLink->free) { if (pLink->linear.size > pLinkRet->linear.size) |