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
Showing
- drivers/gpu/drm/i915/display/intel_overlay.c 0 additions, 4 deletionsdrivers/gpu/drm/i915/display/intel_overlay.c
- drivers/gpu/drm/i915/gem/i915_gem_domain.c 27 additions, 8 deletionsdrivers/gpu/drm/i915/gem/i915_gem_domain.c
- drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c 3 additions, 6 deletionsdrivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
- drivers/gpu/drm/i915/i915_gem.c 14 additions, 22 deletionsdrivers/gpu/drm/i915/i915_gem.c
- drivers/gpu/drm/i915/i915_gem_fence_reg.c 4 additions, 12 deletionsdrivers/gpu/drm/i915/i915_gem_fence_reg.c
- drivers/gpu/drm/i915/i915_vma.c 3 additions, 1 deletiondrivers/gpu/drm/i915/i915_vma.c
- drivers/gpu/drm/i915/i915_vma.h 2 additions, 2 deletionsdrivers/gpu/drm/i915/i915_vma.h
Loading
Please register or sign in to comment