drm/i915: Split sprite update_plane() into calc+commit phases
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 17 Oct 2012 11:58:53 +0000 (14:58 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 25 Oct 2012 16:57:46 +0000 (19:57 +0300)
commit53e512013cc2f5769d45105d32a2e19b05124e99
tree881fadbd47cb141aabaae6da834cd1e932c5104b
parentbd173860775a06946e69261873bf81c67f2fea00
drm/i915: Split sprite update_plane() into calc+commit phases

Separate the part that calculates the register values from the part that
writes the registers. This will be useful in the atomic page flip code.
Also move the watermark magic into a prepare function that can be
performed outside the critical parts of the atomic page flip code.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_sprite.c