Bug 482667

Summary: SDR colors look washed out when HDR is enabled
Product: [Plasma] kwin Reporter: Amine Hassane <bugs.kde.org>
Component: platform-drmAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: deadmeu, nate, xaver.hugl
Priority: NOR Keywords: qt6
Version First Reported In: 6.0.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Amine Hassane 2024-03-07 09:06:34 UTC
SDR colors look washed out when HDR is enabled even at 100% SDR color intensity. The cause is this merge request: https://invent.kde.org/plasma/kwin/-/merge_requests/5069. Reverting it allows SDR colors to look identical to HDR disabled.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.6.15 (64-bit)
Graphics Platform: Wayland
Comment 1 Zamundaaa 2024-03-07 20:09:48 UTC
This is a driver bug. Colors should look identical at 0% SDR color intensity. What GPU do you have? For amdgpu this was fixed in kernel 6.7
Comment 2 deadmeu 2024-03-08 06:27:33 UTC
Just updated to KDE 6 today and I think I have the same problem. With HDR enabled and SDR brightness set to 400% there's less contrast in colours and everything appears to be more washed out. Changing the SDR Color Intensity has no effect on the image.

I am running mesa drivers.

Operating System: Arch Linux 
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.8-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 3900X 12-Core Processor
Graphics Processor: AMD Radeon RX 7900 XT
Comment 3 Amine Hassane 2024-03-08 16:35:47 UTC
My specs:
CPU: AMD Ryzen 7 5800h
GPU: Radeon Vega 8 (Cezanne)        
Display(s): Built-in Laptop OLED Display (Samsung ATNA40YK04-0)
Type of Display Connection: eDP

Kernel 6.7 doesn't make a difference, but I'm having to revert the patch I think you might be referencing, due to this issue:
https://gitlab.freedesktop.org/drm/amd/-/issues/3151
Comment 4 Zamundaaa 2024-03-13 17:41:01 UTC
(In reply to Amine Hassane from comment #3)
> Kernel 6.7 doesn't make a difference, but I'm having to revert the patch I
> think you might be referencing, due to this issue:
> https://gitlab.freedesktop.org/drm/amd/-/issues/3151

Yeah that'll cause this. AMD is working on a fix that doesn't cause such regressions; once that's done this issue should be gone for you.

(In reply to deadmeu from comment #2)
> Just updated to KDE 6 today and I think I have the same problem. With HDR
> enabled and SDR brightness set to 400% there's less contrast in colours and
> everything appears to be more washed out. Changing the SDR Color Intensity
> has no effect on the image.
> 
> I am running mesa drivers.
> 
> Operating System: Arch Linux 
> KDE Plasma Version: 6.0.1
> KDE Frameworks Version: 6.0.0
> Qt Version: 6.6.2
> Kernel Version: 6.7.8-arch1-1 (64-bit)
> Graphics Platform: Wayland
> Processors: 24 × AMD Ryzen 9 3900X 12-Core Processor
> Graphics Processor: AMD Radeon RX 7900 XT

Could you please file a new bug report about that? While the symptoms sound the same, the cause will be different (unless you also patched your kernel?)