drm/i915: Refactor CURPOS calculation
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 27 Mar 2017 18:55:36 +0000 (21:55 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 10 May 2017 16:04:02 +0000 (19:04 +0300)
commited270223759c06525ecf18d5d4aade54c827e7ef
treee2130b0521fe6378c5540b56bf8bc1f101d571b0
parentcd5dcbf1b26c60dfa8fd8628fd2fcf3d33877c63
drm/i915: Refactor CURPOS calculation

Move the CURPOS calculations to seprate function. This will allow
sharing the code between the 845/865 vs. others codepaths when we
otherwise split them apart.

v2: Don't pass intel_plane as it's not needed

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170327185546.2977-6-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_display.c