drm/fourcc: Add packed 10bit YUV 4:2:0 format
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Wed, 15 Dec 2021 09:17:37 +0000 (10:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:14:10 +0000 (13:14 +0100)
commitec1727f89ecd6f2252c0c75e200058819f7ce47a
treecd8d9030e88573e7016326b4677ffd3cbad87cf8
parentf72608b8dd0873e9d64bd710140233761e8a6fee
drm/fourcc: Add packed 10bit YUV 4:2:0 format

[ Upstream commit 006ea1b5822f9019bd722ffc6242bc0880879e3d ]

Adds a format that is 3 10bit YUV 4:2:0 samples packed into
a 32bit word (with 2 spare bits).

Supported on Broadcom BCM2711 chips.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://lore.kernel.org/r/20211215091739.135042-2-maxime@cerno.tech
Stable-dep-of: b230555f3257 ("drm/fourcc: Fix vsub/hsub for Q410 and Q401")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/drm_fourcc.c
include/uapi/drm/drm_fourcc.h