staging/color-management: target_primaries unconditional

The interface description says the target_primaries event is mandatory,
but event documentation disagreed. Fix the disagreement by requiring the
event always.

This saves the compositor from figuring out whether to send the event or
not. I do not know what compositors do today, but sending the event is
definitely safe. Compositors that do not always send the event are
retroactively deemed buggy.

Fixes: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/305

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen 2026-01-14 15:01:07 +02:00 committed by Pekka Paalanen
parent 3dac056d83
commit 2654a53845

View file

@ -1639,9 +1639,7 @@
SMPTE ST 2086 definition of HDR static metadata for mastering displays.
While primary color volume is about how color is encoded, the target
color volume is the actually displayable color volume. If target color
volume is equal to the primary color volume, then this event is not
sent.
color volume is the actually displayable color volume.
Each coordinate value is multiplied by 1 million to get the argument
value to carry precision of 6 decimals.