From 220970b1a484e283e2bbb44f79df613ce1ee1146 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 10 Jan 2013 19:43:05 +0000 Subject: [PATCH] sna: Also prefer to use the GPU for uploads into a tiled bo Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 2725143a..b828cbf8 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -1408,6 +1408,9 @@ static inline bool use_cpu_bo_for_upload(struct sna *sna, if (flags & (MOVE_WRITE | MOVE_ASYNC_HINT)) return true; + if (priv->gpu_bo->tiling) + return true; + return kgem_bo_is_busy(priv->gpu_bo) || kgem_bo_is_busy(priv->cpu_bo); }