wlroots/backend/drm
emersion b877daded1 backend/drm: better hotplug handling
This commit handles better situations in which the number of
connected outputs is greater than the number of available CRTCs.
It'll enable as many outputs as possible, and transfer CRTCs to
outputs that need one on unplug.

This changes CRTC and plane reallocation to happen after scanning
DRM connectors instead of on modeset.

This cleanups CRTCs and planes on unplug to allow them to be
re-used for other outputs.

On modeset, if an output doesn't have a CRTC, the desired mode is
saved and used later when the output gains a CRTC.

Future work includes giving priority to enabled outputs over
disabled ones for CRTC allocation. This requires the compositor to
know about all outputs (even outputs without CRTCs) to properly
modeset outputs enabled in the compositor config file and disable
outputs disabled in the config file.
2018-09-04 15:09:07 +02:00
..
atomic.c Use legacy modesetting for gamma control 2018-08-29 23:05:38 +02:00
backend.c multi-backend: do not expose internal renderers 2018-08-03 07:43:22 +02:00
drm.c backend/drm: better hotplug handling 2018-09-04 15:09:07 +02:00
legacy.c util: add wlr_ prefix to log symbols 2018-07-09 22:49:54 +01:00
properties.c util: add wlr_ prefix to log symbols 2018-07-09 22:49:54 +01:00
renderer.c Remove unused data from gbm_bo userdata 2018-08-04 17:02:53 +12:00
util.c backend/drm: add support for DRM_MODE_CONNECTOR_DPI 2018-08-21 13:05:38 +01:00