backend/drm: support hotplug_mode_update connector prop

For connectors that set the hotplug_mode_update prop (usually connectors
corresponding to virtualised outputs), ignore modes other than the
preferred mode, treat the preferred mode as a custom mode, and do not add it
to the output->modes list. When the preferred mode changes, send a
request_state event on the output to request for the compositor to change to
the new mode.
This commit is contained in:
Daniel Playfair Cal 2021-01-30 16:18:11 +11:00
parent 4abd26ac55
commit e0b4379ce5
4 changed files with 151 additions and 35 deletions

View file

@ -24,6 +24,7 @@ static const struct prop_info connector_info[] = {
{ "DPMS", INDEX(dpms) },
{ "EDID", INDEX(edid) },
{ "PATH", INDEX(path) },
{ "hotplug_mode_update", INDEX(hotplug_mode_update) },
{ "link-status", INDEX(link_status) },
{ "subconnector", INDEX(subconnector) },
{ "vrr_capable", INDEX(vrr_capable) },