diff options
Diffstat (limited to 'src/sna/kgem.h')
-rw-r--r-- | src/sna/kgem.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/sna/kgem.h b/src/sna/kgem.h index 40730c7f..0ab8033f 100644 --- a/src/sna/kgem.h +++ b/src/sna/kgem.h @@ -275,8 +275,11 @@ static inline void kgem_bo_flush(struct kgem *kgem, struct kgem_bo *bo) if (!bo->needs_flush) return; - __kgem_flush(kgem, bo); - + /* If the kernel fails to emit the flush, then it will be forced when + * we assume direct access. And as the useual failure is EIO, we do + * not actualy care. + */ + (void)__kgem_flush(kgem, bo); bo->needs_flush = false; } |