drm/i915: Move SKL hw stride calculation into a helper
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 28 Jan 2016 16:33:11 +0000 (18:33 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 11 Aug 2016 15:33:19 +0000 (18:33 +0300)
commitd21967740f4b7d7af794badac91b2c718b8f17c3
treeed99d62b5fc669491ed671d93bac1d68d1eba127
parentef78ec9423b9ee9f8f3dfe92dffb900cb83365ec
drm/i915: Move SKL hw stride calculation into a helper

We repeat the SKL stride register value calculations a several places.
Move it into a small helper function.

v2: Rebase due to drm_plane_state src/dst rects

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1470821001-25272-4-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