From f8b67be8d3b5d5cbe730ba5dba3edd2d30a99d9f Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 20 Jun 2012 12:39:19 +0100 Subject: [PATCH] sna: Don't clear the needs_flush flag after emitting a flush on the busy bo We use that flag to check whether we need to check whether the bo is still busy upon destruction, so only clear it if the bo is marked as idle. Signed-off-by: Chris Wilson --- src/sna/kgem.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/sna/kgem.h b/src/sna/kgem.h index 0ab8033f..408ad033 100644 --- a/src/sna/kgem.h +++ b/src/sna/kgem.h @@ -280,7 +280,6 @@ static inline void kgem_bo_flush(struct kgem *kgem, struct kgem_bo *bo) * not actualy care. */ (void)__kgem_flush(kgem, bo); - bo->needs_flush = false; } static inline struct kgem_bo *kgem_bo_reference(struct kgem_bo *bo)