Skip to content

Color management support in Mutter

pichika requested to merge master-color-upstream-drm into master

[WIP] This MR implements the color management feature which does the colorspace conversion(csc) from BT709 to BT2020 and vice versa.

It has been implemented to work both in GL path and DRM path if the display hw is capable enough to do conversion.

We have validated this feature using Weston client apps sourced from below URL and modified according our needs. https://gitlab.freedesktop.org/harishkrupo/weston/-/commit/a29321a11f8e4a072d196f02b9f921f74e2bfa99

Here is the list of dependency packages

Weston client apps: https://gitlab.freedesktop.org/NaveenKumar/weston/-/tree/color-management Wayland-protocols: https://gitlab.freedesktop.org/swick/wayland-protocols/-/commits/color DRM KMS UAPIs: https://patchwork.freedesktop.org/series/90821/ - Enhance pipe color support for multi segmented luts

Validation :

  • Input the BT709 colorspace image through weston-color-management-image-gbm client to mutter and mutter does the csc to BT2020 (if the connected monitor supports it)

Future Plans:

  • Add the support of other colorspaces
  • Enhance the feature as per the feedback and other inputs from reviewers

Please review the changes and we are happy to hear your valuable feedback.

Edited by pichika

Merge request reports