sna: Limit temporary userptr uploads to large busy targets or LLC machines
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
cf860da1c7
commit
70c5e41b51
|
|
@ -4363,8 +4363,9 @@ sna_copy_boxes(DrawablePtr src, DrawablePtr dst, GCPtr gc,
|
|||
if (USE_USERPTR_UPLOADS &&
|
||||
src_priv == NULL &&
|
||||
sna->kgem.has_userptr &&
|
||||
((bo->tiling && !bo->scanout) || __kgem_bo_is_busy(&sna->kgem, bo)) &&
|
||||
box_inplace(src_pixmap, ®ion->extents)) {
|
||||
box_inplace(src_pixmap, ®ion->extents) &&
|
||||
((sna->kgem.has_llc && bo->tiling && !bo->scanout) ||
|
||||
__kgem_bo_is_busy(&sna->kgem, bo))) {
|
||||
struct kgem_bo *src_bo;
|
||||
bool ok = false;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue