]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/vc4: plane: Add support for YUV444 formats
authorDom Cobley <popcornmix@gmail.com>
Fri, 21 Jun 2024 15:20:29 +0000 (16:20 +0100)
committerDave Stevenson <dave.stevenson@raspberrypi.com>
Mon, 9 Sep 2024 12:02:52 +0000 (13:02 +0100)
commit31c8a80b93bdf933e784fe0e890e193e01cef796
tree462e6cf0e52818c32f0c6e013a0eb361782de721
parentb4e5646178e86665f5caef2894578600f597098a
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>
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240621152055.4180873-6-dave.stevenson@raspberrypi.com
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/gpu/drm/vc4/vc4_plane.c