drm/i915: Split clipping and checking from update_plane hook
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 16 May 2012 14:38:14 +0000 (17:38 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 3 Aug 2012 14:05:33 +0000 (17:05 +0300)
commit1a7dbcd26b74c78b79af99b120aacb1b9b78128f
tree1f990f87110b6eda9cf9f5451a84ceccf80edae5
parent3503d773923aac54d7f82c6bcc2bb567c364df15
drm/i915: Split clipping and checking from update_plane hook

Split the update_plane() codepath into two separate steps. The first
step checkis and clips the plane, and the second step actually commits
the changes to the hardware. This allows the atomic modesetting code
to perform all checks before clobering hardware state.

The update_plane() hook is reduced to a thin wrapper calling both check
and commit functions.

Buffer (un)pinning is still being performed in the commit step. This
needs to be changed as well, so that the atomic modesetting code can
try to pin all new buffers before touching the hardware.

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