drm/i915: Extract ilk_sprite_ctl()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 17 Mar 2017 21:18:00 +0000 (23:18 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 23 Mar 2017 13:44:40 +0000 (15:44 +0200)
commit0a37514795625713f8a0b6e7d33e42a3abd1dbe6
treecdd78ed90f07e230d0a12bc23f9bda29bd920c11
parent45dea7b0c60738cc4920fa0d39b8d44398436659
drm/i915: Extract ilk_sprite_ctl()

Pull the code to calculate the ILK-SNB sprite control register value
into a separate function. Allows us to pre-compute it in the future.

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