Bug 487479

Summary: Graphical glitches in dual monitor setup with full-screen video player
Product: [Plasma] kwin Reporter: deadmeu <deadmeu>
Component: compositingAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: xaver.hugl
Priority: NOR    
Version First Reported In: 6.0.4   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Example rendering issue

Description deadmeu 2024-05-24 13:20:59 UTC
Created attachment 169776 [details]
Example rendering issue

SUMMARY
In a dual display setup (may occur in more than 2), if a video player is full screen on one display, such as MPV or YouTube full screened in a web browser, windows and context menus experience graphical glitches on the other display.

This issue does not occur if a window is dragged onto the video, causing it to render above the video.

See the attached video, where the following is depicted:
1. MPV is full-screened on the left display, with a window on the right display
2. Dragging the window around shows the graphical rendering errors
3. MPV is un-fullscreened down to a window
4. Dragging the window around no longer shows any issues
5. MPV, while still windowed, is played
6. Dragging the window around still does not show any issues
7. MPV is full-screened with the video still playing
8. Dragging the window around shows the rendering issues once again

STEPS TO REPRODUCE
1. On one display, play a video in full screen (using MPV or a web browser)
2. On the other display, right click to open a context menu, or drag a window around

OBSERVED RESULT
Graphical glitches when rendering on the non-video display.

EXPECTED RESULT
No graphical glitches and smooth movement of windows/menus.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0
Kernel Version: 6.9.1-arch1-2 (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon RX 7900 XT

ADDITIONAL INFORMATION
Not a recent bug, has been occurring for a while. This bug is not visible using direct screen capture (e.g. screenshots or video recordings) and so may potentially be a mesa bug?
Comment 1 Zamundaaa 2024-05-24 13:35:46 UTC
> Not a recent bug, has been occurring for a while. This bug is not visible using direct screen capture (e.g. screenshots or video recordings) and so may potentially be a mesa bug?
Not Mesa, but it does look like a kernel bug, especially when it only happens with direct scanout on the other screen. Please report it here: https://gitlab.freedesktop.org/drm/amd/-/issues
Comment 2 deadmeu 2024-05-24 13:58:08 UTC
(In reply to Zamundaaa from comment #1)
> > Not a recent bug, has been occurring for a while. This bug is not visible using direct screen capture (e.g. screenshots or video recordings) and so may potentially be a mesa bug?
> Not Mesa, but it does look like a kernel bug, especially when it only
> happens with direct scanout on the other screen. Please report it here:
> https://gitlab.freedesktop.org/drm/amd/-/issues

Thanks for the quick reply. I've opened a new issue about it upstream: https://gitlab.freedesktop.org/drm/amd/-/issues/3402