drm/vc4_plane: Add support for YUV444 formats
authorDom Cobley <popcornmix@gmail.com>
Tue, 31 Jan 2023 15:14:32 +0000 (15:14 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:31:27 +0000 (11:31 +0000)
commit550f0f6b656d84f602dd085949d5ec83e98d4564
tree0c3a0caa606fe88c31fa05148034b0fcea0a8ffd
parentad1db5b8d3b3ce0949c9f987d202a9a592eee410
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