output, backend/drm: add wlr_output.color_primaries

This contains the output's color primaries, if known.
This commit is contained in:
Simon Ser 2025-06-26 13:12:05 +02:00
parent 8c7041c4e8
commit b7fe653aac
3 changed files with 20 additions and 0 deletions

View file

@ -195,6 +195,7 @@ struct wlr_drm_connector {
drmModeConnection status;
uint32_t id;
uint64_t max_bpc_bounds[2];
struct wlr_color_primaries color_primaries; // might be zero
struct wlr_drm_lease *lease;
struct wlr_drm_crtc *crtc;

View file

@ -197,6 +197,8 @@ struct wlr_output {
uint32_t supported_primaries; // bitfield of enum wlr_color_named_primaries
uint32_t supported_transfer_functions; // bitfield of enum wlr_color_transfer_function
const struct wlr_color_primaries *color_primaries; // NULL if unset
bool enabled;
float scale;
enum wl_output_subpixel subpixel;