Thread (30 messages) 30 messages, 4 authors, 2026-03-24

Re: [PATCH v3 01/14] drm/connector: Introduce drm_output_color_format enum

From: Dmitry Baryshkov <hidden>
Date: 2026-03-23 04:07:19
Also in: amd-gfx, dri-devel, linux-mediatek, linux-rockchip, linux-sunxi, lkml

On Thu, Mar 05, 2026 at 10:04:53AM +0100, Maxime Ripard wrote:
The EDID parsing code initially introduced the DRM_COLOR_FORMAT_*
defines to represent the sink capabilities. Since a given sink could
support multiple formats, it was first defined as a bitmask.

However, the core and drivers have since leveraged those defines to
represent both the supported formats but also the current format being
used.

Considering the latter case, the more natural, and consistent, thing to
do would be to create an enum of all the possible formats, and then list
the supported formats using a bitmask of the individual enum values.

Let's create a new enum following that pattern, drm_output_color_format,
while maintaining the DRM_COLOR_FORMAT_* compatibility to make the
transition easier.

Acked-by: Jani Nikula <redacted>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Maxime Ripard <mripard@kernel.org>
---
 include/drm/drm_connector.h | 42 ++++++++++++++++++++++++++++++++++--------
 1 file changed, 34 insertions(+), 8 deletions(-)
Reviewed-by: Dmitry Baryshkov <redacted>


-- 
With best wishes
Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help