summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-12-18 18:20:11 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-12-18 18:29:33 +0000
commit8ae105b2c7a06fc81757f06ec1aaa2447b53498a (patch)
tree0dca0826cd2b56d1fa865bd12fc009f30aade406
parenta0c0a3765ca348c74096fb157885da5b1258ee08 (diff)
sna: Only retire for the VMA search if there are cached VMA
If there are no VMA that might become inactive, there is no point scanning the inactive lists if we are searching for VMA. This prevents the regression in firefox-fishbowl whilst maintaining most of the improvement with PutComposite. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/kgem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 3033f5f7..e05bb6cf 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -1747,7 +1747,7 @@ struct kgem_bo *kgem_create_2d(struct kgem *kgem,
assert(bo->domain != DOMAIN_GPU && !kgem_busy(kgem, bo->handle));
return kgem_bo_reference(bo);
}
- } while (kgem_retire(kgem));
+ } while (!list_is_empty(&kgem->vma_cache) && kgem_retire(kgem));
goto skip_active_search;
}