Bug 505914 - Fullscreen YouTube video flickering when using HDR with Color Accuracy set to Prefer Efficiency
Summary: Fullscreen YouTube video flickering when using HDR with Color Accuracy set to...
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: colour-management (other bugs)
Version First Reported In: 6.4.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-21 13:00 UTC by Jure Repinc
Modified: 2025-08-04 18:40 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Recording of screen flickering (2.47 MB, video/webm)
2025-06-21 13:00 UTC, Jure Repinc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jure Repinc 2025-06-21 13:00:51 UTC
Created attachment 182482 [details]
Recording of screen flickering

SUMMARY
I got access to a gaming HDR display (Dell G2724D) and am trying it out. What I noticed is that when I watch YouTube videos and set the in fullscreen it was flickering. This didn't happen if I opened PIP window of the video (in Firefox) and maximised this PIP window. Also it appears it is only happening when HDR is enabled and when Colour Accuracy setting is set to Prefer Efficiency. If set to Prefer Color Accuracy there is no flickering. Also no flickering if I disable HDR mode.

STEPS TO REPRODUCE
1. Enable HDR
2. Set Color Accuracy to Prefer Efficiency
3. Open Youtube Video in Firefox
4. Play it fullscreen (e.g. via pressing F key)

OBSERVED RESULT
Screen flickers as if some short clear white frames were shown in the middle of the video (see attached video)

EXPECTED RESULT
Screen should not flicker and should play as in SDR or Prefer Color Accuracy mode

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20250618
KDE Plasma Version: 6.4.0
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.2-1-default (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840HS w/ Radeon 780M Graphics
Memory: 32 GiB of RAM (30.7 GiB usable)
Graphics Processor: AMD Radeon 780M
Manufacturer: SLIMBOOK
Product Name: EXCALIBUR-16-AMD7

ADDITIONAL INFORMATION
Firefox version: 139.0.4
Mesa: 25.1.3
Comment 1 Nate Graham 2025-06-24 16:29:49 UTC
I can reproduce this issue with that combination of settings on the HDR-capable TV connected to my HTPC.

No issue seen when not using HDR, or when using "Prefer color accuracy".
Comment 2 Zamundaaa 2025-07-02 16:58:52 UTC
This is almost certainly a driver bug. Most likely we'll just have to disable DEGAMMA_LUT on AMD... just like we already did for Intel and NVidia :/

To make sure, does the flicker go away if you put KWIN_DRM_NO_DIRECT_SCANOUT=1 into /etc/environment, reboot and test again?
Comment 3 Jure Repinc 2025-07-05 15:24:40 UTC
Yes, with KWIN_DRM_NO_DIRECT_SCANOUT=1 the flicker goes away. So I guess I should report this bug to amdgpu? Any additional info I should also include when doing so?
Comment 4 Bug Janitor Service 2025-07-20 03:47:10 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Jure Repinc 2025-07-20 11:48:39 UTC
Changed status to REPORTED (see comment #3 ), also already opened an issue in AMD GPU issue tracker:
https://gitlab.freedesktop.org/drm/amd/-/issues/4429
Comment 6 Zamundaaa 2025-08-04 18:40:10 UTC
Plasma 6.4.4 will have degamma lut disabled, so this should be gone then