From: Tvrtko Ursulin Date: Tue, 17 Mar 2015 15:36:51 +0000 (+0000) Subject: drm/i915: Turn on PIN_GLOBAL in i915_gem_object_ggtt_pin X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6fafab76d5189312bf45e71254b5aba5faf7a31b;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git drm/i915: Turn on PIN_GLOBAL in i915_gem_object_ggtt_pin This makes the interface consistent to old i915_gem_obj_ggtt_pin. Signed-off-by: Tvrtko Ursulin Cc: Joonas Lahtinen Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index cc8672a16da4..979dc42b72f0 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c @@ -4292,7 +4292,7 @@ i915_gem_object_ggtt_pin(struct drm_i915_gem_object *obj, return -EINVAL; return i915_gem_object_do_pin(obj, i915_obj_to_ggtt(obj), view, - alignment, flags); + alignment, flags | PIN_GLOBAL); } void