diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-09 10:39:22 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-09 11:09:42 +0100 |
commit | ab445c23079a76eaa2a7d499ec4755599012bd2f (patch) | |
tree | 07ef3bddf99f61febf2d55f7d84b84aba44b1d6e | |
parent | f1d3d1f8c677b938362eee8b9f4e81f5463bc16a (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.h | 2 |
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) |