mirror of
https://github.com/commaai/agnos-kernel-sdm845.git
synced 2026-06-08 11:24:51 +08:00
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: fc04023faf ("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0e79ef256d
commit
87994a2165
@@ -533,7 +533,7 @@ static int vc4_plane_mode_set(struct drm_plane *plane,
|
||||
* the scl fields here.
|
||||
*/
|
||||
if (num_planes == 1) {
|
||||
scl0 = vc4_get_scl_field(state, 1);
|
||||
scl0 = vc4_get_scl_field(state, 0);
|
||||
scl1 = scl0;
|
||||
} else {
|
||||
scl0 = vc4_get_scl_field(state, 1);
|
||||
|
||||
Reference in New Issue
Block a user