sna: Treat unmapped but CPU-mappable bo as available for mapping

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-03-14 23:08:31 +00:00
parent 2c492c0064
commit abd1046002
1 changed files with 1 additions and 1 deletions

View File

@ -443,7 +443,7 @@ static inline bool kgem_bo_mapped(struct kgem_bo *bo)
DBG_HDR(("%s: map=%p, tiling=%d\n", __FUNCTION__, bo->map, bo->tiling));
if (bo->map == NULL)
return false;
return bo->tiling == I915_TILING_NONE && bo->domain == DOMAIN_CPU;
return IS_CPU_MAP(bo->map) == !bo->tiling;
}