Skip to content

Commit 87994a2

Browse files
Boris Brezillongregkh
authored andcommitted
drm/vc4: Fix scaling of uni-planar formats
commit 9a0e980 upstream. When using uni-planar formats (like RGB), the scaling parameters are stored in plane 0, not plane 1. Fixes: fc04023 ("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>
1 parent 0e79ef2 commit 87994a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/vc4/vc4_plane.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ static int vc4_plane_mode_set(struct drm_plane *plane,
533533
* the scl fields here.
534534
*/
535535
if (num_planes == 1) {
536-
scl0 = vc4_get_scl_field(state, 1);
536+
scl0 = vc4_get_scl_field(state, 0);
537537
scl1 = scl0;
538538
} else {
539539
scl0 = vc4_get_scl_field(state, 1);

0 commit comments

Comments
 (0)