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>
This commit is contained in:
Chris Wilson 2014-06-16 08:03:21 +01:00
parent 243bd26ad3
commit 38434b29f4
1 changed files with 1 additions and 1 deletions

View File

@ -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);