提交 ebc052e0 编写于 作者: C Chris Wilson 提交者: Daniel Vetter

drm/i915: Allocate ringbuffers from stolen memory

Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: NJesse Barnes <jbarnes@virtuousgeek.org>
Acked-by: NBen Widawsky <ben@bwidawsk.net>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 0ffb0ff2
......@@ -1113,7 +1113,11 @@ static int intel_init_ring_buffer(struct drm_device *dev,
return ret;
}
obj = i915_gem_alloc_object(dev, ring->size);
obj = NULL;
if (!HAS_LLC(dev))
obj = i915_gem_object_create_stolen(dev, ring->size);
if (obj == NULL)
obj = i915_gem_alloc_object(dev, ring->size);
if (obj == NULL) {
DRM_ERROR("Failed to allocate ringbuffer\n");
ret = -ENOMEM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册