diff options
author | Dave Stevenson <dave.stevenson@raspberrypi.com> | 2021-12-15 10:17:37 +0100 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2021-12-16 11:23:22 +0100 |
commit | 006ea1b5822f9019bd722ffc6242bc0880879e3d (patch) | |
tree | 63baae4e021057707098079aa2576d022f76de6c /drivers/gpu/drm/drm_fourcc.c | |
parent | drm/simpledrm: Add [AX]RGB2101010 formats (diff) | |
download | linux-006ea1b5822f9019bd722ffc6242bc0880879e3d.tar.xz linux-006ea1b5822f9019bd722ffc6242bc0880879e3d.zip |
drm/fourcc: Add packed 10bit YUV 4:2:0 format
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
Diffstat (limited to 'drivers/gpu/drm/drm_fourcc.c')
-rw-r--r-- | drivers/gpu/drm/drm_fourcc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_fourcc.c b/drivers/gpu/drm/drm_fourcc.c index 25837b1d6639..07741b678798 100644 --- a/drivers/gpu/drm/drm_fourcc.c +++ b/drivers/gpu/drm/drm_fourcc.c @@ -269,6 +269,9 @@ const struct drm_format_info *__drm_format_info(u32 format) .num_planes = 3, .char_per_block = { 2, 2, 2 }, .block_w = { 1, 1, 1 }, .block_h = { 1, 1, 1 }, .hsub = 0, .vsub = 0, .is_yuv = true }, + { .format = DRM_FORMAT_P030, .depth = 0, .num_planes = 2, + .char_per_block = { 4, 8, 0 }, .block_w = { 3, 3, 0 }, .block_h = { 1, 1, 0 }, + .hsub = 2, .vsub = 2, .is_yuv = true}, }; unsigned int i; |