Bug 432058

Summary: Nvidia Wayland - No Transparency
Product: [Plasma] kwin Reporter: Wyatt Childers <kdebugs.81do7>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: edpil02, nate, severinvonw, simon.spinner
Priority: NOR    
Version First Reported In: 5.20.5   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Wyatt Childers 2021-01-24 21:57:09 UTC
SUMMARY
Using an nvidia wayland session, panels and windows do not render with transparency, they appear as though compositing is disabled.

STEPS TO REPRODUCE
1. Start a nvidia wayland session
2. Move a window below a plasma panel to try to observe transparency

OBSERVED RESULT
There is no change in the panel appearance.

EXPECTED RESULT
The panel modifies its appearance based on the window behind it.
Comment 1 noname 2021-01-25 13:14:49 UTC
I sent a bug report a few months ago  and seems to be a nvidia driver issue.
But also seems that Nvidia is updating  their driver for best wayland and xwayland support.

https://www.phoronix.com/scan.php?page=news_item&px=NVIDIA-DMA-BUF-Wayland-KDE
https://www.phoronix.com/scan.php?page=news_item&px=NVIDIA-GL-VLK-XWayland


Sorry for my english.
Comment 2 Simon Spinner 2021-06-17 19:19:11 UTC
The nvidia driver (up to 465) does not support querying the texture format of wayland textures via EGL_TEXTURE_FORMAT. Depending on the texture format Kwin determines for a window whether it should use an alpha channel or not. If the query fails, it currently defaults to no alpha channel. For nvidia users it would be better if it defaults to assume an alpha channel for all windows. This would help to make transparent windows work better (e.g., latte dock has a black background for me) and allow for the blur effect.
Comment 3 Severin von Wnuck-Lipinski 2021-09-19 12:16:46 UTC
Fixed with https://invent.kde.org/plasma/kwayland-server/-/merge_requests/294