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:
parent
672e59851c
commit
220970b1a4
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue