color-lcms: make identity_pipeline comment more detailed

This perhaps better explains what the issue here is.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen 2024-02-20 13:54:06 +02:00 committed by Pekka Paalanen
parent e6551ef41f
commit 5d6e7115a9

View file

@ -104,9 +104,12 @@ cmlcms_get_surface_color_transform(struct weston_color_manager *cm_base,
surf_xform->transform = &xform->base;
/*
* When we introduce LCMS plug-in we can precisely answer this question
* by examining the color pipeline using precision parameters. For now
* we just compare if it is same pointer or not.
* TODO: Instead of this, we should create the INPUT_TO_OUTPUT color
* transformation and check if that is identity. Comparing just the
* profiles will miss image adjustments if we add some.
* OTOH, that will only be useful if DRM-backend learns to do
* opportunistic direct scanout without KMS blending space
* transformations.
*/
if (xform->search_key.input_profile == xform->search_key.output_profile)
surf_xform->identity_pipeline = true;