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

Chris Wilson ickle at kemper.freedesktop.org
Mon Jun 16 00:04:04 PDT 2014


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

New commits:
commit 38434b29f4a7b324704bbb1e772371be3c0e397b
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Mon Jun 16 08:03:21 2014 +0100

    sna: Fix some batch DBG
    
    Helps to check for a successful read when we want to show the batch
    after execution.
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index bf07dbf..af4064b 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -3329,7 +3329,7 @@ void _kgem_submit(struct kgem *kgem)
 		}
 	}
 #if SHOW_BATCH_AFTER
-	if (gem_read(kgem->fd, rq->bo->handle, kgem->batch, 0, batch_end*sizeof(uint32_t)))
+	if (gem_read(kgem->fd, rq->bo->handle, kgem->batch, 0, batch_end*sizeof(uint32_t) == 0))
 		__kgem_batch_debug(kgem, batch_end);
 #endif
 	kgem_commit(kgem);


More information about the xorg-commit mailing list