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:
parent
feeff6fcef
commit
c405dba367
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue