summaryrefslogtreecommitdiff
path: root/src/sna/sna_io.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-01-30 13:18:21 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-01-30 16:47:02 +0000
commit83bcd310d279758542e366348f808d7ca0f6d0bb (patch)
treebb6685e55f71948de08c8cb034cf13ef409b5a1e /src/sna/sna_io.c
parent496f3ff04453524639a52a3b9dfcb8e198e5e597 (diff)
sna: Prefer to use snooped buffers for readbacks
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_io.c')
-rw-r--r--src/sna/sna_io.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/sna_io.c b/src/sna/sna_io.c
index f672c3e5..85622bf9 100644
--- a/src/sna/sna_io.c
+++ b/src/sna/sna_io.c
@@ -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;
}