drm/vc4: Fix scaling of uni-planar formats
commit694d8e21ed19345fdfa34da1c0aa260c446ce151
authorBoris Brezillon <boris.brezillon@bootlin.com>
Mon, 7 May 2018 12:13:03 +0000 (7 14:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 May 2018 08:12:31 +0000 (16 10:12 +0200)
treeebd9986d90dc09f60b17bfe40b49e806f1ae763e
parent373f328dfcd9bb8294f8c8362b75cb7f761cc941
drm/vc4: Fix scaling of uni-planar formats

commit 9a0e9802217291e54c4dd1fc5462f189a4be14ec upstream.

When using uni-planar formats (like RGB), the scaling parameters are
stored in plane 0, not plane 1.

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/20180507121303.5610-1-boris.brezillon@bootlin.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/vc4/vc4_plane.c