summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-01-10 16:26:24 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-01-10 16:26:24 +0000
commit09ea1f4402b3bd0e411b90eb5575b3ff066d7356 (patch)
tree6a7dafb94116d36f45079619d22082111cd69f69
parentc63147a3c33fd26f5c04a8648881659b4a90df06 (diff)
sna: Prefer to use the GPU for copies from SHM onto tiled destinations
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index e82fb20b..ca1fd274 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -4392,7 +4392,7 @@ static bool use_shm_bo(struct sna *sna,
if (kgem_bo_is_busy(bo))
return true;
- return __kgem_bo_is_busy(&sna->kgem, priv->cpu_bo);
+ return bo->tiling || __kgem_bo_is_busy(&sna->kgem, priv->cpu_bo);
}
static void