Skip to content

Commit 9a0e980

Browse files
author
Boris Brezillon
committed
drm/vc4: Fix scaling of uni-planar formats
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]
1 parent 7a10967 commit 9a0e980

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
@@ -503,7 +503,7 @@ static int vc4_plane_mode_set(struct drm_plane *plane,
503503
* the scl fields here.
504504
*/
505505
if (num_planes == 1) {
506-
scl0 = vc4_get_scl_field(state, 1);
506+
scl0 = vc4_get_scl_field(state, 0);
507507
scl1 = scl0;
508508
} else {
509509
scl0 = vc4_get_scl_field(state, 1);

0 commit comments

Comments
 (0)