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:
Chris Wilson 2013-01-14 15:03:59 +00:00
parent cf860da1c7
commit 70c5e41b51
1 changed files with 3 additions and 2 deletions

View File

@ -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, &region->extents)) {
box_inplace(src_pixmap, &region->extents) &&
((sna->kgem.has_llc && bo->tiling && !bo->scanout) ||
__kgem_bo_is_busy(&sna->kgem, bo))) {
struct kgem_bo *src_bo;
bool ok = false;