sna: Also assert that the GPU is not wedged before continuing a batch

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-02-07 13:41:42 +00:00
parent feeff6fcef
commit c405dba367
1 changed files with 1 additions and 0 deletions

View File

@ -382,6 +382,7 @@ static inline void _kgem_set_mode(struct kgem *kgem, enum kgem_mode mode)
{
assert(kgem->mode == KGEM_NONE);
assert(kgem->nbatch == 0);
assert(!kgem->wedged);
kgem->context_switch(kgem, mode);
kgem->mode = mode;
}