On to, 2017-01-19 at 19:26 +0000, Chris Wilson wrote: > Now that i915_gem_object_bump_inactive_ggtt() exists, also make use of > it for the LRU bumping from i915_gem_object_unpin_from_display() > > Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> <SNIP> > /* Bump the LRU to try and avoid premature eviction whilst flipping */ > - if (!i915_vma_is_active(vma)) > - list_move_tail(&vma->vm_link, &vma->vm->inactive_list); > + i915_gem_object_bump_inactive_ggtt(vma->obj); Infrequently called function, so the loop within doesn't hurt; Reviewed-by: Jonas Lahtinen <joonas.lahtinen@xxxxxxxxxxxxxxx> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx