Ville Syrjälä d21967740f 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
2016-08-11 18:33:19 +03:00
..
2016-05-31 11:52:59 -07:00
2016-06-18 06:04:01 -10:00
2016-07-02 15:56:01 +10:00
2016-05-19 11:27:09 -07:00
2016-07-16 06:11:59 +09:00
2016-04-09 02:17:43 +02:00
2016-07-26 17:26:29 +10:00
2016-05-18 16:38:59 -07:00
2016-07-18 11:50:40 +02:00
2016-07-16 09:53:34 +09:00
2016-07-26 17:26:29 +10:00
2016-05-27 15:26:11 -07:00
2016-04-30 13:56:46 -07:00
2016-06-15 09:51:35 +01:00
2016-07-26 17:26:29 +10:00
2016-05-20 21:26:15 -07:00
2016-05-29 22:32:27 -07:00
2016-05-20 18:33:37 -07:00
2016-07-06 07:25:55 -07:00
2016-04-30 14:15:56 -07:00
2016-07-26 17:26:29 +10:00
2016-05-01 14:11:12 -07:00
2016-05-31 21:25:52 -06:00
2016-05-10 01:19:26 -07:00
2016-06-07 12:42:58 +03:00
2016-05-23 11:18:01 -07:00