drm/i915: Pass around plane_state instead of fb+rotation
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 20 Jan 2016 16:02:50 +0000 (18:02 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 11 Aug 2016 15:33:32 +0000 (18:33 +0300)
commit2949056c862275064ac4fc0bbb5fa68a4d3026bf
treecac4bceefd8f847e84e03035f13b548757a5b3f4
parentd21967740f4b7d7af794badac91b2c718b8f17c3
drm/i915: Pass around plane_state instead of fb+rotation

intel_compute_tile_offset() and intel_add_fb_offsets() get passed the fb
and the rotation. As both of those come from the plane state we can just
pass that in instead.

For extra consitency pass the plane state to intel_fb_xy_to_linear() as
well even though it only really needs the fb.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1470821001-25272-5-git-send-email-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_sprite.c