commit | 20dfbde463c84d5e0eb32b9f3f84992eb583a698 | [log] [tgz] |
---|---|---|
author | Chris Wilson <chris@chris-wilson.co.uk> | Thu Aug 04 16:32:30 2016 +0100 |
committer | Chris Wilson <chris@chris-wilson.co.uk> | Thu Aug 04 20:19:58 2016 +0100 |
tree | 4d0f0fc885324666e062870bf419ac9d3d6728db | |
parent | de18003328d1dcf845c451945461e55bb8801fd6 [diff] [blame] |
drm/i915: Wrap vma->pin_count accessors with small inline helpers In the next few patches, the VMA pinning API is overhauled and to reduce the churn we pull out the update to the accessors into a prep patch. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1470324762-2545-14-git-send-email-chris@chris-wilson.co.uk
diff --git a/drivers/gpu/drm/i915/i915_gem_fence.c b/drivers/gpu/drm/i915/i915_gem_fence.c index dbaab9c..3b462da 100644 --- a/drivers/gpu/drm/i915/i915_gem_fence.c +++ b/drivers/gpu/drm/i915/i915_gem_fence.c
@@ -431,7 +431,7 @@ WARN_ON(!ggtt_vma || dev_priv->fence_regs[obj->fence_reg].pin_count > - ggtt_vma->pin_count); + i915_vma_pin_count(ggtt_vma)); dev_priv->fence_regs[obj->fence_reg].pin_count++; return true; } else