Bug 487856

Summary: Implement support for Wayland HDR (frog-color-management-v1 / xx-color-management-v2)
Product: [Applications] krita Reporter: Neal Gompa <ngompa>
Component: HDRAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: wishlist CC: dimula73, heri+kde, xaver.hugl
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
See Also: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/70
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Neal Gompa 2024-05-31 21:59:37 UTC
SUMMARY
Krita has HDR capabilities, but they aren't available on Wayland. KDE Plasma supports HDR through frog-color-management-v1 (from gamescope) and xx-color-management-v2 (draft of the upstream protocol).

Implementing support for either or both protocols for Krita as a client can both speed up upstream protocol finalization and enable Krita to be much more functional on Wayland environments.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 40 (KDE Plasma)
(available in About System)
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2
Qt Version: 6.7.1

ADDITIONAL INFORMATION
The details of the color management protocols are here: https://invent.kde.org/plasma/kwin/-/tree/master/src/wayland/protocols?ref_type=heads
Comment 1 Dmitry Kazakov 2024-06-01 05:24:50 UTC
Hi, Neal!

The current upstream specification of Wayland is not suitable for professional colour management work, so we cannot support it right now. It neither defines what happens with the colour after we pass it to the compositor, nor (at least) defines the blending space used by the compositor. We've been telling Wayland developers about these problems for years now, but all of our concerns were ignored. So we cannot fix this bug right now, sorry.
Comment 2 Dennis Schridde 2024-09-07 12:47:34 UTC
For those interested:

An upstream tracker issue exists: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/70

Most information about the status of the implementation of the various subsystems required to support it is contained in a merge request: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/14

E.g. Mesa's Vulkan Window System Integration (WSI) seems to be still missing: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28762 (Does this mean any application using Vulkan will be unable to display HDR content? Even KWin would support it?)

More in depth information about HDR and color management, if your interested: https://gitlab.freedesktop.org/pq/color-and-hdr