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

Commit 0ebb9829 authored by Daniel Vetter's avatar Daniel Vetter
Browse files

drm/i915: enable lazy global-gtt binding



Now that everything is in place, only bind to the global gtt
when actually required. Patch split-up suggested by Chris Wilson.

Reviewed-and-tested-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 149c8407
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2762,6 +2762,8 @@ i915_gem_object_bind_to_gtt(struct drm_i915_gem_object *obj,

		goto search_free;
	}

	if (!dev_priv->mm.aliasing_ppgtt)
		i915_gem_gtt_bind_object(obj, obj->cache_level);

	list_add_tail(&obj->gtt_list, &dev_priv->mm.gtt_list);