Bug 498138 - WL_SHM_FORMAT_ABGR16161616 alpha component is ignored.
Summary: WL_SHM_FORMAT_ABGR16161616 alpha component is ignored.
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 6.2.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-01 21:51 UTC by Mark Bolhuis
Modified: 2025-01-02 02:04 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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