From 1e9b1a104734bcaafd4497127de45df13285be75 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Wed, 16 Mar 2022 14:27:55 +0200 Subject: [PATCH] backend-headless: support all EOTF modes The headless backend does not display to anything, so it doesn't care what the EOTF mode is. To allow testing compositor internal behavior, claim to support all EOTF modes. Signed-off-by: Pekka Paalanen --- libweston/backend-headless/headless.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libweston/backend-headless/headless.c b/libweston/backend-headless/headless.c index 5f2f2898..7165ce40 100644 --- a/libweston/backend-headless/headless.c +++ b/libweston/backend-headless/headless.c @@ -361,6 +361,8 @@ headless_head_create(struct weston_compositor *compositor, weston_head_init(&head->base, name); weston_head_set_connection_status(&head->base, true); + weston_head_set_supported_eotf_mask(&head->base, + WESTON_EOTF_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.