summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-02-07 13:41:42 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-02-07 13:42:08 +0000
commitc405dba367bdca51221bd2464213199783dc18fe (patch)
treef5ce00330c256b055b8a8d586c249ff2f0680584 /src
parentfeeff6fcefccdca5335fea55c2fdbf8a4004c175 (diff)
sna: Also assert that the GPU is not wedged before continuing a batch
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/kgem.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/kgem.h b/src/sna/kgem.h
index d05326a0..a23194fe 100644
--- a/src/sna/kgem.h
+++ b/src/sna/kgem.h
@@ -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;
}