wlroots/types/output
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
..
cursor.c output/cursor: downgrade error messages 2022-09-15 09:33:30 +02:00
output.c output: fix back buffer checks 2022-09-21 16:18:16 +02:00
render.c output: fix back buffer checks 2022-09-21 16:18:16 +02:00
state.c output: add wlr_output_state.allow_artifacts 2022-09-30 10:58:17 +00:00
transform.c output: split into multiple files 2021-10-23 00:49:24 +02:00