wlroots/backend
Simon Ser c6dd5e3c2e backend/drm: check buffer format for multi-GPU
Fixes on-screen corruption when displaying a fullscreen client
with an implicit modifier on the secondary GPU.

What happens here:

- Client allocates a buffer with an INVALID modifier on primary GPU.
- Compositor attempts to scan-out this buffer on an output connected
  to secondary GPU.
- Buffer is imported to secondary GPU, and is interpreted as if it had
  the secondary GPU's implicit tiling, even though it has the primary
  GPU's implicit tiling.

We need to forbid cross-device imports with implicit modifiers.
The mgpu_formats list is stripped from any INVALID modifier so
checking that fixes the bug.

Using the mgpu_formats list has an additional benefit: the buffer
is rejected in the test commit if it doesn't have a format supported
by the multi-GPU renderer.

Requires this Mesa bugfix:
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31725
2024-11-28 20:27:48 +01:00
..
drm backend/drm: check buffer format for multi-GPU 2024-11-28 20:27:48 +01:00
headless backend/headless: actually perform output test 2024-10-24 10:49:08 +02:00
libinput pointer: release pressed buttons on destroy 2024-09-24 19:53:54 +00:00
multi backend/multi: only consider backends with dmabuf cap for timeline 2024-10-30 23:10:59 +00:00
session backend/session: use "KMS" instead of "DRM" in log messages 2024-06-17 09:43:38 +02:00
wayland meson: use kwargs for wayland deps 2024-11-21 16:46:55 +00:00
x11 backend/x11: delete xcb conn check NULL 2024-10-24 09:02:41 +00:00
backend.c all: use public <wlr/render/allocator.h> 2024-11-07 18:48:20 +01:00
meson.build backend/session: make optional 2022-11-25 16:15:29 +00:00