diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-29 23:00:15 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-29 23:00:15 +0100 |
commit | d3499cacb59f19b5a3439a630ffbc3e105a27b75 (patch) | |
tree | eb4cd17c36f95ba6ba137ef3f6c22eb26c6c22ac | |
parent | cb4d789f98e6e05ec29e5242887018c7450ddf10 (diff) |
sna: Assert that we never attempt to submit a batch whilst wedged
We should be asserting at the point that we insert the invalid operation
into the batch, but asserting upon submitting the batch is a useful
failsafe.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/kgem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 515b1ae0..635dd24c 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -2069,6 +2069,7 @@ void _kgem_submit(struct kgem *kgem) int size; assert(!DBG_NO_HW); + assert(!kgem->wedged); assert(kgem->nbatch); assert(kgem->nbatch <= KGEM_BATCH_SIZE(kgem)); |