diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-05-17 08:51:57 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-05-17 08:51:57 +0100 |
commit | a16a7e36ca3b22af2978695a57c2f2e9250529a7 (patch) | |
tree | 4021f16fd8e72077754b31bd4121c3f1778e96cb /src/sna/kgem.h | |
parent | aa44ba990a4c49fcfc5ed7dbf9968e3c622ffa0a (diff) |
sna: Only mark wedged checking inside operations as a WARN
These are primarily to serve to detect when we expect to see corruption
as a result of a badly timed EIO rather than fatal, so downgrade the
assertion to a warn.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/kgem.h')
-rw-r--r-- | src/sna/kgem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/kgem.h b/src/sna/kgem.h index adc777de..bdcb9f14 100644 --- a/src/sna/kgem.h +++ b/src/sna/kgem.h @@ -410,7 +410,7 @@ static inline void kgem_set_mode(struct kgem *kgem, enum kgem_mode mode, struct kgem_bo *bo) { - assert(!kgem->wedged); + warn_unless(!kgem->wedged); #if DEBUG_FLUSH_BATCH kgem_submit(kgem); @@ -432,7 +432,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); + warn_unless(!kgem->wedged); kgem->context_switch(kgem, mode); kgem->mode = mode; } |