drm/i915: Turn on PIN_GLOBAL in i915_gem_object_ggtt_pin
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 17 Mar 2015 15:36:51 +0000 (15:36 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 20 Mar 2015 10:48:12 +0000 (11:48 +0100)
This makes the interface consistent to old i915_gem_obj_ggtt_pin.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c

index cc8672a16da46517c7562c61ed2393186e893f23..979dc42b72f0429072878149796d8ee93da19e42 100644 (file)
@@ -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