summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-08-09 10:39:22 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-08-09 11:09:42 +0100
commitab445c23079a76eaa2a7d499ec4755599012bd2f (patch)
tree07ef3bddf99f61febf2d55f7d84b84aba44b1d6e
parentf1d3d1f8c677b938362eee8b9f4e81f5463bc16a (diff)
sna: Rewrite the can-mmap-cpu test to handle stolen unclaimed bo
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/kgem.h2
1 files changed, 1 insertions, 1 deletions
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)