summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem.c
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2013-08-14 11:38:34 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-22 13:31:52 +0200
commit82a55ad1a0585e4e01a47f72fe81fb5a2d2c0fb1 (patch)
treebd4235f5e56d8e95d6ca0b3197133c578d0eef8a /drivers/gpu/drm/i915/i915_gem.c
parentdrm/i915: s/obj->exec_list/obj->obj_exec_link in debugfs (diff)
downloadlinux-82a55ad1a0585e4e01a47f72fe81fb5a2d2c0fb1.tar.xz
linux-82a55ad1a0585e4e01a47f72fe81fb5a2d2c0fb1.zip
drm/i915: Switch eviction code to use vmas
The execbuf wants to do relocations usings vmas, so we need a vma->exec_list. The eviction code also uses the old obj execbuf list for it's own book-keeping, but would really prefer to deal in vmas only. So switch it over to the new list. Again this is just a prep patch for the big execbuf vma conversion. Signed-off-by: Ben Widawsky <ben@bwidawsk.net> [danvet: Split out from Ben's big execbuf vma patch.] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.c')
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index ce40e27f8b42..ca29055ae206 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -4132,6 +4132,7 @@ struct i915_vma *i915_gem_vma_create(struct drm_i915_gem_object *obj,
INIT_LIST_HEAD(&vma->vma_link);
INIT_LIST_HEAD(&vma->mm_list);
+ INIT_LIST_HEAD(&vma->exec_list);
vma->vm = vm;
vma->obj = obj;