sna: Strengthen assertions that batches are idle before overwriting

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-03-09 16:33:06 +00:00
parent f7c4bc7c5f
commit 535b030c02
1 changed files with 3 additions and 1 deletions

View File

@ -3249,7 +3249,9 @@ kgem_batch_write(struct kgem *kgem,
char *ptr;
int ret;
ASSERT_IDLE(kgem, bo->handle);
assert(bo->exec == NULL);
assert(bo->rq == NULL);
assert(!__kgem_busy(kgem, bo->handle));
#if DBG_NO_EXEC
{