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:
Chris Wilson 2013-08-09 10:39:22 +01:00
parent f1d3d1f8c6
commit ab445c2307
1 changed files with 1 additions and 1 deletions

View File

@ -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)