sna: Paranoid debug flush after every op (as well as before)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-09-24 23:16:57 +01:00
parent 0233760034
commit ccf6547a8f
1 changed files with 8 additions and 0 deletions

View File

@ -228,6 +228,14 @@ static inline void kgem_set_mode(struct kgem *kgem, enum kgem_mode mode)
static inline void _kgem_set_mode(struct kgem *kgem, enum kgem_mode mode)
{
#if DEBUG_FLUSH_CACHE
kgem_emit_flush(kgem);
#endif
#if DEBUG_FLUSH_BATCH
kgem_submit(kgem);
#endif
if (kgem->nbatch)
kgem->mode = mode;
}