Files
Sunshine/src
T-Gander bbf3cf0031
Some checks failed
Top issues / Top issues (push) Has been cancelled
fix(linux/kms): count CRTCs not planes when assigning monitor index
kms_display_names() and display_t::init() each independently counted
every active, non-cursor plane as one "monitor" when building/matching
the display index. A CRTC with more than one simultaneously-active
plane (e.g. gamescope's base + overlay layers) was counted twice by
both passes, throwing their indices out of sync with each other and
producing duplicate/misnumbered display names.

Track counted CRTCs per card in both passes so a CRTC contributes to
the index exactly once, regardless of how many active planes it has.
2026-08-19 00:11:34 -06:00
..