sna: Rewrite the can-mmap-cpu test to handle stolen unclaimed bo
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
f1d3d1f8c6
commit
ab445c2307
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue