wlroots-hyprland/backend
Simon Ser d71ed635b9 backend/drm: force linear layout for multi-GPU buffers
Some buffers need to be copied across GPUs. Such buffers need to be
allocated with a format and modifier suitable for both the source
and the destination.

When explicit modifiers aren't supported, we were forcing the buffers
to be allocated with a linear layout, because implicit modifiers
aren't portable across GPUs. All is well with this case.

When explicit modifiers are supported, we were advertising the whole
list of destination modifiers, in the hope that the source might
have some in common and might be able to allocate a buffer with a
more optimized layout. This works well if the source supports explicit
modifiers. However, if the source doesn't, then wlr_drm_format_intersect
will fallback to implicit modifiers, and everything goes boom: the
source uses a GPU-specific tiling and the destination interprets it
as linear.

To avoid this, just force linear unconditionally. We'll be able to
revert this once we have a good way to indicate that an implicit modifier
isn't supported in wlr_drm_format_set, see [1].

[1]: https://github.com/swaywm/wlroots/pull/2815

Closes: https://github.com/swaywm/wlroots/issues/3030
2021-07-08 17:06:20 +02:00
..
drm backend/drm: force linear layout for multi-GPU buffers 2021-07-08 17:06:20 +02:00
headless buffer: make enum wlr_buffer_cap public 2021-07-01 16:40:19 -04:00
libinput Fix invalid uses of wl_array_for_each 2021-07-08 10:08:47 -04:00
multi backend: introduce wlr_backend_finish 2021-05-21 22:13:54 +02:00
noop backend: add output state allow-lists 2021-06-20 23:17:08 +02:00
session backend/session: use DRM_PRIMARY_MINOR_NAME 2021-06-17 00:28:04 +02:00
wayland backend/wayland: send touch frame events 2021-07-08 09:12:17 +02:00
x11 backend/x11: send touch frame events 2021-07-08 09:12:17 +02:00
backend.c backend: automatically create allocator 2021-05-21 22:13:54 +02:00
meson.build Drop RDP backend 2020-01-10 19:38:39 +01:00