wlroots-hyprland/include
emersion f8a50e4fe7 backend/drm: steal CRTCs from disabled outputs
This commit allows outputs that need a CRTC to steal it from
user-disabled outputs. Note that in the case there are enough
CRTCs, disabled outputs don't loose it (so there's no modeset
and plane initialization needed after DPMS). CRTC allocation
still prefers to keep the old configuration, even if that means
allocating an extra CRTC to a disabled output.

CRTC reallocation now happen when enabling/disabling an output as
well as when trying to modeset. When enabling an output without a
CRTC, we realloc to try to steal a CRTC from a disabled output
(that doesn't really need the CRTC). When disabling an output, we
try to give our CRTC to an output that needs one. Modesetting is
similar to enabling.

A new DRM connector field has been added: `desired_enabled`.
Outputs without CRTCs get automatically disabled. This field keeps
track of the state desired by the user, allowing to automatically
re-enable outputs when a CRTC becomes free.

This required some changes to the allocation algorithm. Previously,
the algorithm tried to keep the previous configuration even if a
new configuration with a better score was possible (it only changed
configuration when the old one didn't work anymore). This is now
changed and the old configuration (still preferred) is only
retained without considering new possibilities when it's perfect
(all outputs have CRTCs).

User-disabled outputs now have `possible_crtcs` set to 0, meaning
they can only retain a previous CRTC (not acquire a new one). The
allocation algorithm has been updated to do not bump the score
when assigning a CRTC to a disabled output.
2018-09-15 08:37:33 +02:00
..
backend backend/drm: steal CRTCs from disabled outputs 2018-09-15 08:37:33 +02:00
render gles2: change context when it is not current 2018-08-03 07:43:22 +02:00
rootston layer-shell: add _v1 suffix 2018-09-14 19:32:33 +02:00
types Merge pull request #1127 from emersion/surface-precommit 2018-07-27 13:21:03 -04:00
util Another round of feedback from acrisci 2018-07-14 09:52:34 +02:00
wlr Merge pull request #1241 from emersion/output-enable-error-checking 2018-09-14 21:14:18 -04:00
xcursor Add xcursor sublibrary 2017-08-07 21:13:04 -04:00
xwayland xwayland: Introduce set_role event 2018-09-03 17:07:14 +10:00
meson.build config: Avoid clash with other config-headers 2017-12-27 17:13:58 +01:00