From 89d702763875831604751bac396c3d2400ec59b6 Mon Sep 17 00:00:00 2001 From: Egbert Eich Date: Fri, 27 Aug 2004 21:44:54 +0000 Subject: Fix for XV memory allocation: Also use tiled area for allocation even if it hasn't been used before. --- hw/xfree86/common/xf86fbman.c | 6 ++---- 1 file 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) -- cgit v1.2.3