color-management: Advertise relative colorimetric support

While we are required to offer perceptual support, we wlr_scene does not
support any kind of tone mapping in the current moment. As such, we
might as well advertise relative colorimetric support.

As we only support sRGB and BT.2020 right now which share the D65
whitepoint, we could also advertise absolute and absolute_no_adaption if
we wanted to.
This commit is contained in:
Kenny Levinsen 2026-03-22 14:19:24 +01:00
parent 131045ce55
commit c4aebf1ed4

View file

@ -447,6 +447,7 @@ bool server_init(struct sway_server *server) {
if (server->renderer->features.input_color_transform) {
const enum wp_color_manager_v1_render_intent render_intents[] = {
WP_COLOR_MANAGER_V1_RENDER_INTENT_PERCEPTUAL,
WP_COLOR_MANAGER_V1_RENDER_INTENT_RELATIVE,
};
size_t transfer_functions_len = 0;
enum wp_color_manager_v1_transfer_function *transfer_functions =