]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit772492efe0bbed03c9fc58266b200a40c81b9646
tree4e2674b3525713f3361e20209ccaadf7f962b201
parent49532d6876a39314450aaf781d4fb881ccbfdaf9
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