Re: [PATCH v8 04/11] drm/fourcc: Add DRM_FORMAT_Y10_P32

From: Simon Ser

Date: Thu Mar 19 2026 - 11:02:35 EST


On Wednesday, January 28th, 2026 at 18:25, Tomi Valkeinen <tomi.valkeinen@xxxxxxxxxxxxxxxx> wrote:

> Add Y10_P32, a 10 bit greyscale format, with 3 pixels packed into
> 32-bit container.
>
> The fourcc for the format is 'YPA4', which comes from Y - Y only, P -
> packed, A - 10 (as in 0xA), 4 - 4 bytes.

I know we aren't super consistent about DRM format names, but… this _P32
suffix doesn't make sense to me: we never had it before, and a lot of
DRM formats are packed (in the Vulkan sense [1]), so I'm not sure why
this one would need it.

What's special about this one is that it's the first (AFAIK) which has
3 pixels per block. Some YCbCr formats are sub-sampled, but always use a
square block.

I would suggest something like YYYX1010102. We use the "channels
followed by bits per component" pattern elsewhere.

[1]: https://docs.vulkan.org/spec/latest/chapters/formats.html#formats-packed