xf86-video-intel: src/sna/kgem.c

Chris Wilson ickle at kemper.freedesktop.org
Tue May 7 02:55:54 PDT 2013


 src/sna/kgem.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 262ee1ef1e98cb84fa0af6e679c8cd61dc93f008
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Tue May 7 10:35:53 2013 +0100

    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 at chris-wilson.co.uk>

diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 76451ec..8b096c5 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);


More information about the xorg-commit mailing list