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 <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-06-20 12:39:19 +01:00
parent 5419bbb483
commit f8b67be8d3
1 changed files with 0 additions and 1 deletions

View File

@ -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)