sna: Also prefer to use the GPU for uploads into a tiled bo

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-01-10 19:43:05 +00:00
parent 672e59851c
commit 220970b1a4
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}