drm/i915/overlay: Replace i915_gem_obj_ggtt_offset() with the known flip_addr
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 Apr 2016 08:56:36 +0000 (09:56 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 Apr 2016 11:17:32 +0000 (12:17 +0100)
commitda6ca0347d51d016ab55f58b50e959f830a03bdb
tree4e2674b3525713f3361e20209ccaadf7f962b201
parentfb4b8ce139c36fe93cf006bd68f0aa0340dd59e8
drm/i915/overlay: Replace i915_gem_obj_ggtt_offset() with the known flip_addr

When setting up the overlay page, we pin it into the GGTT (when using
virtual addresses) and store the offset as overlay->flip_addr. Rather
than doing a lookup of the GGTT address everytime, we can use the known
address instead.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1461833819-3991-2-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_overlay.c