Bug 498138

Summary: WL_SHM_FORMAT_ABGR16161616 alpha component is ignored.
Product: [Plasma] kwin Reporter: Mark Bolhuis <mark>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: xaver.hugl
Priority: NOR    
Version First Reported In: 6.2.4   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 6.3.0
Sentry Crash Report:

Description Mark Bolhuis 2025-01-01 21:51:51 UTC
SUMMARY
When using wl_shm to create a WL_SHM_FORMAT_ABGR16161616 buffer, the alpha component is ignored.

STEPS TO REPRODUCE
1. Create a wl_shm buffer with WL_SHM_FORMAT_ABGR16161616
2. Set the buffer contents with a non 0xffff alpha value
2. Attach, and commit it to a surface.

OBSERVED RESULT
The surface is fully opaque (black).

EXPECTED RESULT
The surface should be transparent.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1
Kernel Version: 6.12.7-arch1-1 (64-bit)
Graphics Platform: Wayland
Graphics Processor: Mesa IntelĀ® Graphics
Comment 1 Zamundaaa 2025-01-02 02:04:08 UTC
The format was missing from the drm format list, but it was added with https://invent.kde.org/plasma/kwin/-/commit/c6cce7514125c5cc6ea18925300275c874260531 for 6.3