From 262ee1ef1e98cb84fa0af6e679c8cd61dc93f008 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 7 May 2013 10:35:53 +0100 Subject: [PATCH] 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 --- src/sna/kgem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);