wlroots/backend/drm
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
..
atomic.c backend/drm: Remove reset from interface 2024-10-29 11:13:13 +01:00
backend.c backend/drm: Allow proceeding with render-less mgpu 2024-11-08 15:14:08 +01:00
drm.c backend/drm: check buffer format for multi-GPU 2024-11-28 20:27:48 +01:00
fb.c backend/drm: add drm_fb_copy() 2024-03-04 11:25:33 +01:00
gen_pnpids.sh backend/drm: use libdisplay-info to parse EDID 2023-02-28 14:44:02 +00:00
legacy.c backend/drm: fix drmModePageFlip() when disabling CRTC on legacy uAPI 2024-11-23 15:29:44 +01:00
libliftoff.c backend/drm: Remove reset from interface 2024-10-29 11:13:13 +01:00
meson.build add an option to enable/disable libliftoff 2024-06-05 22:33:05 -06:00
monitor.c backend/drm: drop wl_display argument 2024-01-25 15:05:36 +00:00
properties.c backend/drm: add support for explicit sync APIs 2024-08-06 17:37:06 +00:00
renderer.c backend/drm: Remove redundant error logs 2024-11-08 15:14:08 +01:00
util.c backend/drm: improve doc comment for match_connectors_with_crtcs_() 2024-09-02 17:12:32 +00:00