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

Chris Wilson ickle at kemper.freedesktop.org
Thu Dec 13 01:54:01 PST 2012


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

New commits:
commit f631a56bcb3ff1ce1942b828325a157cef1e0880
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Thu Dec 13 00:55:45 2012 +0000

    sna: Only flush the batch after an actual relocation
    
    As we may write preparatory instructions into the batch before checking
    for a flush.
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/kgem.h b/src/sna/kgem.h
index 5c9cd14..2d90cf3 100644
--- a/src/sna/kgem.h
+++ b/src/sna/kgem.h
@@ -347,7 +347,7 @@ static inline void kgem_set_mode(struct kgem *kgem,
 	kgem_submit(kgem);
 #endif
 
-	if (kgem->mode && bo->exec == NULL && kgem_ring_is_idle(kgem, kgem->ring))
+	if (kgem->nexec && bo->exec == NULL && kgem_ring_is_idle(kgem, kgem->ring))
 		kgem_submit(kgem);
 
 	if (kgem->mode == mode)


More information about the xorg-commit mailing list