drm/vc4: Fix scaling of uni-planar formats
authorBoris Brezillon <[email protected]>
Mon, 7 May 2018 12:13:03 +0000 (14:13 +0200)
committerBoris Brezillon <[email protected]>
Wed, 9 May 2018 07:48:23 +0000 (09:48 +0200)
commit9a0e9802217291e54c4dd1fc5462f189a4be14ec
treee4238700d7cc900feb09dbfbeaec8bd3a30802a9
parent7a109673899b6d5b147307999efe2392181acee3
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: fc04023fafec ("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]
drivers/gpu/drm/vc4/vc4_plane.c