From ab445c23079a76eaa2a7d499ec4755599012bd2f Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 9 Aug 2013 10:39:22 +0100 Subject: [PATCH] sna: Rewrite the can-mmap-cpu test to handle stolen unclaimed bo Signed-off-by: Chris Wilson --- src/sna/kgem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/kgem.h b/src/sna/kgem.h index 4ea8596f..e08f842e 100644 --- a/src/sna/kgem.h +++ b/src/sna/kgem.h @@ -580,7 +580,7 @@ static inline bool kgem_bo_can_map__cpu(struct kgem *kgem, struct kgem_bo *bo, bool write) { - if (bo->scanout && (write || bo->purged)) + if (bo->purged || (bo->scanout && write)) return false; if (kgem->has_llc)