Re: [PATCH v3 01/11] drm/fourcc: Add warning for bad bpp

2025-02-13 Thread Laurent Pinchart
Hi Tomi, Thank you for the patch. On Wed, Feb 12, 2025 at 04:56:05PM +0200, Tomi Valkeinen wrote: > drm_format_info_bpp() cannot be used for formats which do not have an > integer bits-per-pixel in a pixel block. > > E.g. DRM_FORMAT_XV15's (not yet in upstream) plane 0 has three 10-bit > pixels

[PATCH v3 01/11] drm/fourcc: Add warning for bad bpp

2025-02-12 Thread Tomi Valkeinen
drm_format_info_bpp() cannot be used for formats which do not have an integer bits-per-pixel in a pixel block. E.g. DRM_FORMAT_XV15's (not yet in upstream) plane 0 has three 10-bit pixels (Y components), and two padding bits, in a 4 byte block. That is 10.666... bits per pixel when considering the