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:
parent
5637c173f8
commit
262ee1ef1e
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue