]> 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)
commita148568b67e21cdabd5c5dc35395a41d334a37b5
treeb724839908589fd2cc0f9c09b52d2d7f1349817c
parent5520ceccbbb505e5f2dec14b6febf0d5d0e2cec9
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