Skip to content

Commit 2b2b003

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: [email protected] Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d2901e2 commit 2b2b003

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/vc4/vc4_plane.c

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

0 commit comments

Comments
 (0)