diff options
author | Simon Ser <contact@emersion.fr> | 2021-12-17 15:42:57 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-05-24 20:45:55 +0000 |
commit | e59f4d4ffa9ac2c7add84278b716b7e1c7ac74f3 (patch) | |
tree | 7533526cb51148a5d1d8a47db3bf29ff034ad44f /backend/drm/util.c | |
parent | ad06c12c89791dad0c3858a75102277127158063 (diff) |
backend/drm: allow non-linear modifiers for multi-GPU
Prior to [1], if an entry in a DRM format set was different than a
single LINEAR modifier, implicit modifiers were always allowed. This
has changed and now implicit modifiers are only allowed if INVALID
is in the list of modifiers.
So now we can safely enable explicit modifiers for cross-GPU imports,
without risking receiving buffers with an implicit modifier. This
should improve perf a bit on setups where two GPUs from the same vendor
are used.
This fixes the first bullet point from [2].
[1]: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3231
[2]: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3331
Diffstat (limited to 'backend/drm/util.c')
0 files changed, 0 insertions, 0 deletions