Summary: | Wayland: Screen corruption in full screen applications on secondary iGPU | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Nowa Ammerlaan <nowa> |
Component: | wayland-generic | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | xaver.hugl |
Priority: | NOR | ||
Version: | 5.25.4 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=433107 | ||
Latest Commit: | https://invent.kde.org/plasma/kwin/commit/5662bdb14cf0ebd290053a5989d1999e74dc6276 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | wayland session log with QT_LOGGING_RULES=kwin_*.debug=true;kwin_libinput.debug=false |
Description
Nowa Ammerlaan
2022-08-13 18:44:29 UTC
Created attachment 151303 [details]
wayland session log with QT_LOGGING_RULES=kwin_*.debug=true;kwin_libinput.debug=false
Does this also happen with KWIN_DRM_NO_DIRECT_SCANOUT=1 set? (In reply to Zamundaaa from comment #2) > Does this also happen with KWIN_DRM_NO_DIRECT_SCANOUT=1 set? It does not. With this variable in env fullscreen on wayland works just fine. A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/2817 Most likely the problem is caused by one of your GPUs not supporting explicit modifiers. Can you test if that MR fixes it? (In reply to Zamundaaa from comment #5) > Most likely the problem is caused by one of your GPUs not supporting > explicit modifiers. Can you test if that MR fixes it? Yes! It fixes the problem. Thanks for the very quick fix. Git commit 6cdb1e6f64c7b81806787670e3ddd3d49d62abc0 by Xaver Hugl. Committed on 14/08/2022 at 17:53. Pushed by zamundaaa into branch 'master'. backends/drm: add stricter checks for direct scanout Buffers with implicit modifiers from another GPU must not be imported, as the layouts may not be compatible. For buffers with incompatible modifiers, direct scanout can also be rejected early, saving some computational power. M +5 -0 src/backends/drm/drm_backend.cpp M +1 -0 src/backends/drm/drm_backend.h M +1 -0 src/backends/drm/drm_buffer_gbm.cpp M +7 -0 src/backends/drm/drm_egl_layer.cpp https://invent.kde.org/plasma/kwin/commit/6cdb1e6f64c7b81806787670e3ddd3d49d62abc0 Git commit 5662bdb14cf0ebd290053a5989d1999e74dc6276 by Xaver Hugl. Committed on 15/08/2022 at 17:14. Pushed by zamundaaa into branch 'Plasma/5.25'. backends/drm: add stricter checks for direct scanout Buffers with implicit modifiers from another GPU must not be imported, as the layouts may not be compatible. For buffers with incompatible modifiers, direct scanout can also be rejected early, saving some computational power. (cherry picked from commit 6cdb1e6f64c7b81806787670e3ddd3d49d62abc0) M +5 -0 src/backends/drm/drm_backend.cpp M +1 -0 src/backends/drm/drm_backend.h M +1 -0 src/backends/drm/drm_buffer_gbm.cpp M +7 -0 src/backends/drm/egl_gbm_layer.cpp https://invent.kde.org/plasma/kwin/commit/5662bdb14cf0ebd290053a5989d1999e74dc6276 |