sna: Prefer to use snooped buffers for readbacks

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-01-30 13:18:21 +00:00
parent 496f3ff044
commit 83bcd310d2
1 changed files with 3 additions and 0 deletions

View File

@ -123,6 +123,9 @@ static bool download_inplace(struct kgem *kgem, struct kgem_bo *bo)
if (FORCE_INPLACE)
return FORCE_INPLACE > 0;
if (kgem->can_blt_cpu && kgem->max_cpu_size)
return false;
return !__kgem_bo_is_busy(kgem, bo) || bo->tiling == I915_TILING_NONE;
}