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:
parent
243bd26ad3
commit
38434b29f4
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue