]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Save user requested plane coordinates only on success
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 1 Oct 2013 15:02:15 +0000 (18:02 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 10 Oct 2013 10:47:00 +0000 (12:47 +0200)
commitbda89d9f8ec8568936d61b6a9378f71f2335fc70
treeb724839908589fd2cc0f9c09b52d2d7f1349817c
parent05b95365c05f8a70439fcd20351b843453f1d756
drm/i915: Save user requested plane coordinates only on success

If the setplane operation fails, we shouldn't save the user's requested
plane coordinates. Since we adjust the coordinates during the clipping
process, make a copy of the originals, and once the operation has
succeeded save them for later reuse when the plane gets re-enabled.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_sprite.c