Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ebc052e0 authored by Chris Wilson's avatar Chris Wilson Committed by Daniel Vetter
Browse files

drm/i915: Allocate ringbuffers from stolen memory

parent 0ffb0ff2
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1113,6 +1113,10 @@ static int intel_init_ring_buffer(struct drm_device *dev,
			return ret;
	}

	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");