From e9c388b5a118f7810ade94b18e673dc976c38561 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 9 Dec 2025 14:24:59 +0200 Subject: [PATCH] color-lcms: do not advertise saturation intent Weston does not support the saturation rendering intent for parametric image descriptions yet. Not really, Weston would just do the same as media-relative with BPC does. Signed-off-by: Pekka Paalanen --- libweston/color-lcms/color-lcms.c | 3 +-- tests/color-management-parametric-test.c | 2 +- tests/color-management-test.c | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/libweston/color-lcms/color-lcms.c b/libweston/color-lcms/color-lcms.c index 3229ba08d..0effb74f3 100644 --- a/libweston/color-lcms/color-lcms.c +++ b/libweston/color-lcms/color-lcms.c @@ -523,9 +523,8 @@ weston_color_manager_create(struct weston_compositor *compositor) (1 << WESTON_COLOR_FEATURE_SET_MASTERING_DISPLAY_PRIMARIES) | (1 << WESTON_COLOR_FEATURE_EXTENDED_TARGET_VOLUME); - /* We support all rendering intents. */ cm->base.supported_rendering_intents = (1 << WESTON_RENDER_INTENT_PERCEPTUAL) | - (1 << WESTON_RENDER_INTENT_SATURATION) | + /* (1 << WESTON_RENDER_INTENT_SATURATION) | */ (1 << WESTON_RENDER_INTENT_ABSOLUTE) | (1 << WESTON_RENDER_INTENT_RELATIVE) | (1 << WESTON_RENDER_INTENT_RELATIVE_BPC); diff --git a/tests/color-management-parametric-test.c b/tests/color-management-parametric-test.c index 9ad7f2384..f001bd60d 100644 --- a/tests/color-management-parametric-test.c +++ b/tests/color-management-parametric-test.c @@ -433,7 +433,7 @@ color_manager_get(struct client *client) test_assert_u32_eq(cm->supported_rendering_intents, (1 << WP_COLOR_MANAGER_V1_RENDER_INTENT_PERCEPTUAL) | (1 << WP_COLOR_MANAGER_V1_RENDER_INTENT_RELATIVE) | - (1 << WP_COLOR_MANAGER_V1_RENDER_INTENT_SATURATION) | + /* (1 << WP_COLOR_MANAGER_V1_RENDER_INTENT_SATURATION) | */ (1 << WP_COLOR_MANAGER_V1_RENDER_INTENT_ABSOLUTE) | (1 << WP_COLOR_MANAGER_V1_RENDER_INTENT_RELATIVE_BPC)); diff --git a/tests/color-management-test.c b/tests/color-management-test.c index f4bf46f09..fd18b32e3 100644 --- a/tests/color-management-test.c +++ b/tests/color-management-test.c @@ -73,7 +73,7 @@ color_manager_get(struct client *client) test_assert_u32_eq(cm->supported_rendering_intents, (1 << WP_COLOR_MANAGER_V1_RENDER_INTENT_PERCEPTUAL) | (1 << WP_COLOR_MANAGER_V1_RENDER_INTENT_RELATIVE) | - (1 << WP_COLOR_MANAGER_V1_RENDER_INTENT_SATURATION) | + /* (1 << WP_COLOR_MANAGER_V1_RENDER_INTENT_SATURATION) | */ (1 << WP_COLOR_MANAGER_V1_RENDER_INTENT_ABSOLUTE) | (1 << WP_COLOR_MANAGER_V1_RENDER_INTENT_RELATIVE_BPC));