drm/i915: Extract ivb_sprite_ctl()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 17 Mar 2017 21:17:59 +0000 (23:17 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 23 Mar 2017 13:44:06 +0000 (15:44 +0200)
commit45dea7b0c60738cc4920fa0d39b8d44398436659
tree7053b0771ce9dc9e1f6a6ec0b2b93fb3ad2add84
parent96ef6854bb4c5ad23d81f69fd0a4aed238c40d34
drm/i915: Extract ivb_sprite_ctl()

Pull the code to calculate the IVB-BDW 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-6-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_sprite.c