summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-12-07 14:56:18 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-12-07 14:56:18 +0000
commit65a8c23ca1bc8e2ebd087027a30358704d4bf11c (patch)
tree5959489be1a03187d5bc27dfad00c0ee1e125f11
parent4bfc5e90f54be1b0997dec9e81796d67b376a01f (diff)
sna: Only flush at the low apeture watermark if idle
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/kgem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index bf457ce9..2138f1a2 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -3789,7 +3789,7 @@ bool kgem_check_bo_fenced(struct kgem *kgem, struct kgem_bo *bo)
if (kgem->nexec >= KGEM_EXEC_SIZE(kgem) - 1)
return false;
- if (kgem->aperture > kgem->aperture_low)
+ if (kgem->aperture > kgem->aperture_low && kgem_is_idle(kgem))
return false;
if (kgem->aperture + num_pages(bo) > kgem->aperture_high)
@@ -3860,7 +3860,7 @@ bool kgem_check_many_bo_fenced(struct kgem *kgem, ...)
}
if (num_pages) {
- if (kgem->aperture > kgem->aperture_low)
+ if (kgem->aperture > kgem->aperture_low && kgem_is_idle(kgem))
return false;
if (num_pages + kgem->aperture > kgem->aperture_high)