]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Replace i915_vma_put_fence()
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 22 Aug 2019 06:15:57 +0000 (07:15 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 22 Aug 2019 07:53:42 +0000 (08:53 +0100)
commit1f7fd484fff1b432373f0d0682fb0e2015113161
tree1154402998a28db068e05c7960f6d09fe249c3dc
parentb7d151ba4b295abdc9736eed3fb85cd475f2c883
drm/i915: Replace i915_vma_put_fence()

Avoid calling i915_vma_put_fence() by using our alternate paths that
bind a secondary vma avoiding the original fenced vma. For the few
instances where we need to release the fence (i.e. on binding when the
GGTT range becomes invalid), replace the put_fence with a revoke_fence.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190822061557.18402-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/display/intel_overlay.c
drivers/gpu/drm/i915/gem/i915_gem_domain.c
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_fence_reg.c
drivers/gpu/drm/i915/i915_vma.c
drivers/gpu/drm/i915/i915_vma.h