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 <[email protected]>

<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 <[email protected]>

Regards, Joonas
-- 
Joonas Lahtinen
Open Source Technology Center
Intel Corporation
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to