diff options
author | Ben Widawsky <ben@bwidawsk.net> | 2013-09-24 12:57:58 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-10-01 01:45:21 -0400 |
commit | e2d05a8b1e4a7f6feae89a59543b1edbece1bda3 (patch) | |
tree | 72ba5cee4bc284e0101459911cd9b5de70f72283 /drivers/gpu/drm/i915/i915_drv.h | |
parent | 5c2abbeab798154166d42fce4f71790caa6dd9bc (diff) |
drm/i915: Convert active API to VMA
Even though we track object activity and not VMA, because we have the
active_list be based on the VM, it makes the most sense to use VMAs in
the APIs.
NOTE: Daniel intends to eventually rip out active/inactive LRUs, but for
now, leave them be.
v2: Remove leftover hunk from the previous patch which didn't keep
i915_gem_object_move_to_active. That patch had to rely on the ring to
get the dev instead of the obj. (Chris)
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index a3d43b25e1d9..7ccb0cd35474 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -1905,9 +1905,8 @@ static inline void i915_gem_object_unpin_pages(struct drm_i915_gem_object *obj) | |||
1905 | int __must_check i915_mutex_lock_interruptible(struct drm_device *dev); | 1905 | int __must_check i915_mutex_lock_interruptible(struct drm_device *dev); |
1906 | int i915_gem_object_sync(struct drm_i915_gem_object *obj, | 1906 | int i915_gem_object_sync(struct drm_i915_gem_object *obj, |
1907 | struct intel_ring_buffer *to); | 1907 | struct intel_ring_buffer *to); |
1908 | void i915_gem_object_move_to_active(struct drm_i915_gem_object *obj, | 1908 | void i915_vma_move_to_active(struct i915_vma *vma, |
1909 | struct intel_ring_buffer *ring); | 1909 | struct intel_ring_buffer *ring); |
1910 | |||
1911 | int i915_gem_dumb_create(struct drm_file *file_priv, | 1910 | int i915_gem_dumb_create(struct drm_file *file_priv, |
1912 | struct drm_device *dev, | 1911 | struct drm_device *dev, |
1913 | struct drm_mode_create_dumb *args); | 1912 | struct drm_mode_create_dumb *args); |