drm/vc4: Reset ->{x, y}_scaling[1] when dealing with uniplanar formats
authorBoris Brezillon <boris.brezillon@bootlin.com>
Tue, 24 Jul 2018 13:36:01 +0000 (15:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Aug 2018 14:20:51 +0000 (16:20 +0200)
commit1a08888316d2d69d772391597fadde90d1cf1483
tree660edd4b492d974fa8ffd7f556f5c758a300babd
parent51ef850c78bb311e7bc5e6aada5756fbf71d6b08
drm/vc4: Reset ->{x, y}_scaling[1] when dealing with uniplanar formats

commit a6a00918d4ad8718c3ccde38c02cec17f116b2fd upstream.

This is needed to ensure ->is_unity is correct when the plane was
previously configured to output a multi-planar format with scaling
enabled, and is then being reconfigured to output a uniplanar format.

Fixes: fc04023fafec ("drm/vc4: Add support for YUV planes.")
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20180724133601.32114-1-boris.brezillon@bootlin.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/vc4/vc4_plane.c