output: add color_format state field

Adds wlr_output_color_format (AUTO, RGB444, YCBCR444, YCBCR422,
YCBCR420) matching the DRM connector color format property. The DRM
backend discovers and sets this property on modeset.

The wlr-output-management-unstable-v1 protocol is extended to version 5
with a color_format enum and set_color_format request, allowing clients
to configure the output color encoding.
This commit is contained in:
Souren 2026-05-10 19:16:46 +07:00 committed by Igor Deordiev
parent e4a1268b2a
commit 4fe9e0cfe8
11 changed files with 135 additions and 7 deletions

View file

@ -27,6 +27,7 @@ static const struct prop_info connector_info[] = {
{ "EDID", INDEX(edid) },
{ "HDR_OUTPUT_METADATA", INDEX(hdr_output_metadata) },
{ "PATH", INDEX(path) },
{ "color format", INDEX(color_format) },
{ "content type", INDEX(content_type) },
{ "link-status", INDEX(link_status) },
{ "max bpc", INDEX(max_bpc) },