aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-11-15 06:32:26 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-11-30 17:34:16 -0500
commit0104fdbb84d7adb0e377ed05bf75eba97b007544 (patch)
treec51e2069f6769d9a74c362c0465454691cf41f28 /drivers/gpu/drm/i915/i915_gem.c
parent960e3564bfa464f92549383d41659f2aaeee1420 (diff)
drm/i915: Introduce i915_gem_object_create_stolen()
Allow for the creation of GEM objects backed by stolen memory. As these are not backed by ordinary pages, we create a fake dma mapping and store the address in the scatterlist rather than obj->pages. v2: Mark _i915_gem_object_create_stolen() as static, as noticed by Jesse Barnes. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org> Reviewed-by: Ben Widawsky <ben@bwidawsk.net> 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 5c8df572cd17..3de62b0127a5 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -3772,6 +3772,7 @@ void i915_gem_free_object(struct drm_gem_object *gem_obj)
3772 obj->pages_pin_count = 0; 3772 obj->pages_pin_count = 0;
3773 i915_gem_object_put_pages(obj); 3773 i915_gem_object_put_pages(obj);
3774 i915_gem_object_free_mmap_offset(obj); 3774 i915_gem_object_free_mmap_offset(obj);
3775 i915_gem_object_release_stolen(obj);
3775 3776
3776 BUG_ON(obj->pages); 3777 BUG_ON(obj->pages);
3777 3778