| Summary: | Washed out colors in a VM after 1f832cfc | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | daron439 |
| Component: | wayland-generic | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | xaver.hugl |
| Priority: | NOR | ||
| Version First Reported In: | master | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/kwin/-/commit/b883722857bcb7e971eb9aaeaaa83d2ccd22ba61 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: |
with 1f832cfc
with 1f832cfc reverted |
||
|
Description
daron439
2025-01-14 20:19:28 UTC
Created attachment 177357 [details]
with 1f832cfc reverted
Can confirm, not sure why it only happens in VMs, but I think I see how to fix it A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/7008 Git commit 22c519f0bfb41bc2346f0a8ea96445e67ae6267f by Xaver Hugl. Committed on 15/01/2025 at 14:24. Pushed by zamundaaa into branch 'master'. backends/drm: don't use ColorDescription::toOther for calculating channel factors ColorDescription::toOther adjusts the brightness from the original color description to the new one, which makes it unsuitable for checking the brightness after the transformation. Instead, a new helper in Colorimetry is added that does only the desired calculation without any brightness changes. M +1 -1 src/backends/drm/drm_output.cpp M +5 -0 src/core/colorspace.cpp M +2 -0 src/core/colorspace.h https://invent.kde.org/plasma/kwin/-/commit/22c519f0bfb41bc2346f0a8ea96445e67ae6267f Git commit b883722857bcb7e971eb9aaeaaa83d2ccd22ba61 by Xaver Hugl. Committed on 15/01/2025 at 14:56. Pushed by zamundaaa into branch 'Plasma/6.3'. backends/drm: don't use ColorDescription::toOther for calculating channel factors ColorDescription::toOther adjusts the brightness from the original color description to the new one, which makes it unsuitable for checking the brightness after the transformation. Instead, a new helper in Colorimetry is added that does only the desired calculation without any brightness changes. (cherry picked from commit 22c519f0bfb41bc2346f0a8ea96445e67ae6267f) Co-authored-by: Xaver Hugl <xaver.hugl@gmail.com> M +1 -1 src/backends/drm/drm_output.cpp M +5 -0 src/core/colorspace.cpp M +2 -0 src/core/colorspace.h https://invent.kde.org/plasma/kwin/-/commit/b883722857bcb7e971eb9aaeaaa83d2ccd22ba61 |