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

Chris Wilson ickle at kemper.freedesktop.org
Tue Mar 31 16:35:10 PDT 2015


 src/sna/sna_accel.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 745c21fb1aa1fcd54e9a9aeaa7fe6877af39f2f1
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Wed Apr 1 00:34:00 2015 +0100

    sna: Fixup inverted logic for new bo
    
    We only want to inspect the busy status of bo we have not yet added to
    our execbuffer.
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 9b84d5c..55d613e 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -3284,9 +3284,12 @@ inline static void sna_pixmap_unclean(struct sna *sna, struct sna_pixmap *priv)
 	list_del(&priv->flush_list);
 
 	if ((priv->gpu_bo->needs_flush & priv->flush) == 0 ||
-	    priv->gpu_bo->exec == NULL)
+	    priv->gpu_bo->exec)
 		return;
 
+	DBG(("%s(pixmap=%ld): cleaning foreign bo handle=%u\n",
+	     __FUNCTION__, priv->pixmap->drawable.serialNumber, priv->gpu_bo->handle));
+
 	busy.handle = priv->gpu_bo->handle;
 	busy.busy = 0;
 	ioctl(sna->kgem.fd, DRM_IOCTL_I915_GEM_BUSY, &busy);


More information about the xorg-commit mailing list