diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-07-06 11:39:45 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-07-06 18:22:41 +0100 |
commit | e6bb1d7f1adfcd24ac7d82ab157a8b8809a0d2c8 (patch) | |
tree | 5b4f3e44ab8741f425bd4b220ee3717ea5686c07 /drivers/gpu/drm/i915/i915_vma.h | |
parent | a523697857cdfb6a548f6caf38f42f4fe0f7d757 (diff) | |
download | linux-stable-e6bb1d7f1adfcd24ac7d82ab157a8b8809a0d2c8.tar.gz linux-stable-e6bb1d7f1adfcd24ac7d82ab157a8b8809a0d2c8.tar.bz2 linux-stable-e6bb1d7f1adfcd24ac7d82ab157a8b8809a0d2c8.zip |
drm/i915: Move i915_vma_move_to_active() to i915_vma.c
i915_vma_move_to_active() has grown beyond its execbuf origins, and
should take its rightful place in i915_vma.c as a method for i915_vma!
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180706103947.15919-4-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_vma.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_vma.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_vma.h b/drivers/gpu/drm/i915/i915_vma.h index 66a228931517..a218b689e418 100644 --- a/drivers/gpu/drm/i915/i915_vma.h +++ b/drivers/gpu/drm/i915/i915_vma.h @@ -215,6 +215,10 @@ static inline bool i915_vma_has_active_engine(const struct i915_vma *vma, return vma->active & BIT(engine); } +int __must_check i915_vma_move_to_active(struct i915_vma *vma, + struct i915_request *rq, + unsigned int flags); + static inline u32 i915_ggtt_offset(const struct i915_vma *vma) { GEM_BUG_ON(!i915_vma_is_ggtt(vma)); |