sna: Fix SHOW_BATCH_AFTER debugging aide

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-09-29 16:32:30 +01:00
parent 8aff3898c3
commit 6284ca5a7e
1 changed files with 1 additions and 1 deletions

View File

@ -3405,7 +3405,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) == 0))
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);