]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Drop i915_gem_obj_is_pinned() from set-cache-level
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 9 Oct 2015 13:11:27 +0000 (14:11 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 13 Oct 2015 13:52:38 +0000 (15:52 +0200)
commit75b5a6dc3917d344fe5fe575bb92f5222c9e0e6a
tree0eb008bf62b4c8711e02e1c7f3c4c83e3c7494c0
parent3db52a52c2eb01f8c5dd63edde5dd6dac754c6f0
drm/i915: Drop i915_gem_obj_is_pinned() from set-cache-level

Since the remove of the pin-ioctl, we only care about not changing the
cache level on buffers pinned to the hardware as indicated by
obj->pin_display. By knowing that only objects pinned to the hardware
will have an elevated vma->pin_count, so we can coallesce many of the
linear walks over the obj->vma_list.

v2: Try and retrospectively add comments explaining the steps in
rebinding the active VMA.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c