summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-05-07 10:35:53 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-05-07 10:38:12 +0100
commit262ee1ef1e98cb84fa0af6e679c8cd61dc93f008 (patch)
treed650e955fce81cdb6bc1597898b61e2fcdcde953
parent5637c173f85a5bb9a77572e4c070e0d612e6f49d (diff)
sna: Do not attempt to clean an active scanout
For simplicity, skip buffers that are still in use by the batch - they will be removed later. 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 76451ecc..8b096c50 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -2807,7 +2807,7 @@ void kgem_clean_scanout_cache(struct kgem *kgem)
struct kgem_bo *bo;
bo = list_first_entry(&kgem->scanout, struct kgem_bo, list);
- if (__kgem_busy(kgem, bo->handle))
+ if (bo->exec || __kgem_busy(kgem, bo->handle))
break;
list_del(&bo->list);