Bug 487759 - Vulkan wayland native windows go crazy when in fullscreen at random.
Summary: Vulkan wayland native windows go crazy when in fullscreen at random.
Status: CLOSED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 6.0.4
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-29 18:55 UTC by V
Modified: 2024-06-04 17:58 UTC (History)
1 user (show)

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


Attachments
Example with Minecraft running on Vulkan thanks to the vulkanmod (should work properly) (67 bytes, text/plain)
2024-05-29 18:55 UTC, V
Details

Note You need to log in before you can comment on or make changes to this bug.
Description V 2024-05-29 18:55:36 UTC
Created attachment 169953 [details]
Example with Minecraft running on Vulkan thanks to the vulkanmod (should work properly)

SUMMARY
Apps open in random screens instead of the main (and focused) one, and they flicker a lot while focused.

STEPS TO REPRODUCE
1. launch your favorite Vulkan app with Wayland native mode
2. set it in fullscreen.
3. done.

OBSERVED RESULT
The apps open on wrong (random) screens, and flicker while in fullscreen. Sometimes they don't have an issue, sometimes they do. It's random... Hardly trackable because of lack of ways to get logs.

EXPECTED RESULT
The apps should run normally, without flickering.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Void-Linux 6.9.2
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.6.0

ADDITIONAL INFORMATION
- I can't find a way to get logs.
- The issue doesn't seem to happen with my Void-Linux laptop, that runs the exact same config.
- Dmesg prints nothing
- the vulkan loader debug mode (VK_LOADER_DEBUG=all) prints nothing as well
- Vulkan validation layers print nothing as well.

I try my luck here, after trying on the Void-Linux github repo, then vulkan-loader repo.
Comment 1 Zamundaaa 2024-05-29 22:58:17 UTC
What GPU are you using?
Comment 2 V 2024-05-30 10:47:21 UTC
(In reply to Zamundaaa from comment #1)
> What GPU are you using?

Hello, thank you for your answer.

My main configuration (which has this issue) runs with:

CPU: R7 7800X3D
RAM: 32Gb
GPU: RX 7900 XTX
Driver: Mesa 24.0.7
Comment 3 Zamundaaa 2024-06-03 17:49:39 UTC
Okay. If you put
KWIN_DRM_NO_DIRECT_SCANOUT=1
into /etc/environment and reboot, does the issue go away?
Comment 4 V 2024-06-03 18:53:57 UTC
(In reply to Zamundaaa from comment #3)
> Okay. If you put
> KWIN_DRM_NO_DIRECT_SCANOUT=1
> into /etc/environment and reboot, does the issue go away?

I'm not sure, but it seems like it works... What does this do ?
Comment 5 Zamundaaa 2024-06-03 19:46:09 UTC
It disables an optimization that sometimes drivers don't handle correctly; if disabling it fixes the problem, then it's a driver bug.
Please report this at https://gitlab.freedesktop.org/drm/amd/-/issues (once the site is up again, it doesn't work right now)
Comment 6 V 2024-06-04 17:58:15 UTC
(In reply to Zamundaaa from comment #3)
> Okay. If you put
> KWIN_DRM_NO_DIRECT_SCANOUT=1
> into /etc/environment and reboot, does the issue go away?

Apparently it was already reported, or at least, something similar was, i added my comment to try and help... I think we can close this thread now.

Link: https://gitlab.freedesktop.org/drm/amd/-/issues/3402#note_2438198