diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-16 08:03:21 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-16 08:03:21 +0100 |
commit | 38434b29f4a7b324704bbb1e772371be3c0e397b (patch) | |
tree | 2e97634f9c0225ab8a710e935717e1d00b2988e4 /src | |
parent | 243bd26ad31776b2dc45563107e669cf7b45fd91 (diff) |
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@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/kgem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index bf07dbf8..af4064b2 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); |