diff options
Diffstat (limited to 'src/sna/kgem.h')
-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 fede4d40..a6e48b62 100644 --- a/src/sna/kgem.h +++ b/src/sna/kgem.h @@ -578,7 +578,7 @@ static inline bool kgem_bo_can_map__cpu(struct kgem *kgem, struct kgem_bo *bo, bool write) { - if (bo->scanout && (!kgem->has_wt || write)) + if (bo->scanout && (write || bo->purged || !kgem->has_wt)) return false; if (kgem->has_llc) |