Skip to content

backend/drm: use CRTCs in-order

Simon Ser requested to merge emersion/wlroots:drm-crtc-match-order into master

When lighting up a new connector, we'd use the last CRTC instead of the first one. This causes issues because drivers have the expectation that userspace will match CRTCs to connectors in-order 1.

The order has regressed a long time ago in 5b13b8a1 ("backend/drm: consider continue not using resources"). That commit was a fix to avoid moving a connector between CRTCs 2. Revert that commit and use a different approach: even if we've found a solution, always try not using a CRTC in the hope that we'll find another solution with less CRTC replacements.

Closes: #3098 (closed)

Merge request reports

Loading