pixel-formats: Add P030

Which is used on the RPi4/5 by the HEVC HW decoder for 10bit content.

Note that this is not enough to make KMS offloading work as the
decoder uses the BROADCOM_SAND128 modifier which - for now - requires
manual/unusual handling (i.e. this requires going through GL).

Signed-off-by: Robert Mader <robert.mader@collabora.com>
This commit is contained in:
Robert Mader 2024-11-10 18:19:15 +01:00
parent 10ecf60848
commit 4f4011d79e

View file

@ -571,6 +571,13 @@ static const struct pixel_format_info pixel_format_table[] = {
.hsub = 2, .hsub = 2,
.vsub = 2, .vsub = 2,
}, },
{
DRM_FORMAT(P030),
SAMPLER_TYPE(EGL_TEXTURE_Y_UV_WL),
.num_planes = 2,
.hsub = 2,
.vsub = 2,
},
{ {
DRM_FORMAT(YUV410), DRM_FORMAT(YUV410),
SAMPLER_TYPE(EGL_TEXTURE_Y_U_V_WL), SAMPLER_TYPE(EGL_TEXTURE_Y_U_V_WL),