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>
This commit is contained in:
Chris Wilson 2013-05-07 10:35:53 +01:00
parent 5637c173f8
commit 262ee1ef1e
1 changed files with 1 additions and 1 deletions

View File

@ -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);