aboutsummaryrefslogtreecommitdiff
path: root/backend/drm/util.c
AgeCommit message (Collapse)Author
2018-10-04backend/drm: update EDID manufacturers databaseemersion
2018-09-15backend/drm: steal CRTCs from disabled outputsemersion
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-04backend/drm: cosmetic enhancementsemersion
2018-09-04backend/drm: consider continue not using resourcesemersion
Fixes #1230
2018-09-04backend/drm: prevent use of uninitialized dataemersion
2018-09-04backend/drm: remove unused ifemersion
2018-08-21backend/drm: add support for DRM_MODE_CONNECTOR_DPIemersion
2018-07-09util: add wlr_ prefix to log symbolsemersion
2018-05-03Fix typos in comments and stringsmorganamilo
2018-02-12Reformat all #include directivesemersion
2017-12-28style: fix sizeof() calls without parenthesesDominique Martinet
2017-12-07Configure outputs with make, model, serial in rootstonemersion
Added fallbacks in DRM backend in case EDID extension data for model and serial is missing. Updates #403
2017-11-11Add wlr_output.serialemersion
2017-09-30Rename files to remove pointless drm prefixScott Anderson