drm/vc4_plane: Add support for YUV444 formats
authorDom Cobley <popcornmix@gmail.com>
Tue, 31 Jan 2023 15:14:32 +0000 (15:14 +0000)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Wed, 1 Feb 2023 17:11:48 +0000 (17:11 +0000)
commit1ad6225d52f8679924cfd72d91575a29c4f4167e
tree8ca9db73eb9a461a976ff544579bd791edd8bff5
parent18d8d0236d45f0fe9082548f23a0ab4379d8c106
drm/vc4_plane: Add support for YUV444 formats

Support displaying DRM_FORMAT_YUV444 and DRM_FORMAT_YVU444 formats.
Tested with kmstest and kodi. e.g.

kmstest -r 1920x1080@60 -f 400x300-YU24

Note: without the shift of width, only half the chroma is fetched,
resulting in correct left half of image and corrupt colours on right half.

The increase in width shouldn't affect fetching of Y data,
as the hardware will clamp at dest width.

Signed-off-by: Dom Cobley <popcornmix@gmail.com>
drivers/gpu/drm/vc4/vc4_plane.c