summaryrefslogtreecommitdiff
path: root/src/sna/kgem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sna/kgem.h')
-rw-r--r--src/sna/kgem.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sna/kgem.h b/src/sna/kgem.h
index 95f0f7b2..4ea8596f 100644
--- a/src/sna/kgem.h
+++ b/src/sna/kgem.h
@@ -647,8 +647,11 @@ static inline bool __kgem_bo_is_busy(struct kgem *kgem, struct kgem_bo *bo)
static inline void kgem_bo_mark_unreusable(struct kgem_bo *bo)
{
- while (bo->proxy)
+ while (bo->proxy) {
+ bo->flush = true;
bo = bo->proxy;
+ }
+ bo->flush = true;
bo->reusable = false;
}