wlroots/backend
Simon Ser a0345f2854 output: add wlr_output_state.allow_artifacts
When starting up, the compositor might call wlr_output_set_mode()
with a mode which is already the current one. wlroots will detect
this and make the wlr_output_set_mode() call a no-op. During the
next wlr_output_commit() call, wlroots will perform an atomic
commit without the ALLOW_MODESET flag.

This is an issue, because some drivers need ALLOW_MODESET even if
the mode is the same. For instance, if the FB stride or modifier
changed, some drivers require a modeset.

Add a new flag "allow_artifacts" which is set when the compositor
calls mode-setting functions. Use this flag to figure out whether
we want to perform atomic commits with ALLOW_MODESET.

(The name "allow_artifacts" is picked because ALLOW_MODESET is a
misnomer, see [1].)

[1]: https://patchwork.freedesktop.org/patch/505107/

Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3499
2022-09-30 10:58:17 +00:00
..
drm output: add wlr_output_state.allow_artifacts 2022-09-30 10:58:17 +00:00
headless Use wl_signal_emit_mutable 2022-08-18 07:16:16 -04:00
libinput backend/libinput: Fix SIGSEGV found in low-memory fuzzing 2022-09-22 13:37:32 -04:00
multi Use wl_signal_emit_mutable 2022-08-18 07:16:16 -04:00
session Use wl_signal_emit_mutable 2022-08-18 07:16:16 -04:00
wayland backend/wayland: drop output_set_custom_mode() 2022-09-08 14:18:40 +02:00
x11 backend/x11: report adaptive sync as enabled 2022-08-30 17:53:50 +00:00
backend.c Use env helpers 2022-08-22 10:18:52 -04:00
meson.build backend: remove noop backend 2021-11-25 16:49:05 +00:00