Skip to content

Commit

Permalink
drm/i915: Turn on PIN_GLOBAL in i915_gem_object_ggtt_pin
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tvrtko Ursulin authored and Daniel Vetter committed Mar 20, 2015
1 parent dabde5c commit 6fafab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6fafab7

Please sign in to comment.