backend-headless: support all colorimetry modes

The headless backend does not display to anything, so it doesn't care
what the colorimetry mode is. To allow testing compositor internal
behavior, claim to support all colorimetry modes.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen 2023-09-20 16:27:25 +03:00 committed by Pekka Paalanen
parent a7a47503f1
commit ea91d595dc

View file

@ -489,6 +489,8 @@ headless_head_create(struct weston_backend *base,
weston_head_set_connection_status(&head->base, true);
weston_head_set_supported_eotf_mask(&head->base,
WESTON_EOTF_MODE_ALL_MASK);
weston_head_set_supported_colorimetry_mask(&head->base,
WESTON_COLORIMETRY_MODE_ALL_MASK);
/* Ideally all attributes of the head would be set here, so that the
* user has all the information when deciding to create outputs.