drm/i915: Implement proper clipping for video sprites
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 18 Apr 2012 13:24:28 +0000 (16:24 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 25 Oct 2012 16:57:39 +0000 (19:57 +0300)
commit6f8d1cdc77236e20abbb81350c82f76b3e2a950b
tree640d82602193d64328e3d3ebd9a922600a0fb323
parent0aa0eec429f6bfda179c5fbc96cc65b7c0443543
drm/i915: Implement proper clipping for video sprites

Properly clip the source when the destination gets clipped
by the pipe dimensions.

Sadly the video sprite hardware is rather limited so it can't do proper
sub-pixel postitioning. Resort to a best effort approach, where the
source coordinates are rounded to the nearest (macro)pixel boundary.

Also do some additional checking against various hardware limits.

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