Summary: | Strange background pattern/dithering on Wayland session | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | skylake118 |
Component: | wayland-generic | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | 31113, nate, skylake118, xaver.hugl |
Priority: | NOR | ||
Version: | 5.24.1 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/kwin/commit/1d058a79d1b73091e4427e106eb4b98d13c57bb4 | Version Fixed In: | 5.24.3 |
Sentry Crash Report: | |||
Attachments: | Notice how the header and icons, which should be solid, have a pattern. the blur effect also has this problem, just like everything else on the Wayland session. |
Description
skylake118
2022-02-24 01:15:49 UTC
The issue is this: "Format: RGB565". Somehow KWins format selection prefers to use this low-precision format instead of the better 10 or 8 bit per color formats that are also available on your hardware. A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/2068 Could you please test the MR without KWIN_DRM_PREFER_COLOR_DEPTH set and check with drm_info which format gets used with it? The bug should've only caused 8 bit color to be used, instead of 10 bit color, there could be more going on Git commit 1d058a79d1b73091e4427e106eb4b98d13c57bb4 by Xaver Hugl. Committed on 24/02/2022 at 20:39. Pushed by zamundaaa into branch 'Plasma/5.24'. backends/drm: fix format choosing The logic was inverted and would choose the format after the first one that is suitable. On most hardware that wouldn't cause noticable issues as that will choose the ARGB variant of the normal format, but some Intel hardware doesn't support these and thus a lower bit depth format than intended gets used. M +3 -3 src/backends/drm/egl_gbm_backend.cpp https://invent.kde.org/plasma/kwin/commit/1d058a79d1b73091e4427e106eb4b98d13c57bb4 (In reply to Zamundaaa from comment #4) > Git commit 1d058a79d1b73091e4427e106eb4b98d13c57bb4 by Xaver Hugl. > Committed on 24/02/2022 at 20:39. > Pushed by zamundaaa into branch 'Plasma/5.24'. > > backends/drm: fix format choosing > > The logic was inverted and would choose the format after the first one that > is suitable. On most hardware that wouldn't cause noticable issues as that > will choose the ARGB variant of the normal format, but some Intel hardware > doesn't support these and thus a lower bit depth format than intended gets > used. > > M +3 -3 src/backends/drm/egl_gbm_backend.cpp > > https://invent.kde.org/plasma/kwin/commit/ > 1d058a79d1b73091e4427e106eb4b98d13c57bb4 Very interesting! It seems that the MR got approved into the Plasma 5.24 branch before I got to test it. I will test the updated KWin with Wayland as soon as I can. |