summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}