backend-drm: ignore heads from other devices

The compositor lists the heads from all devices, but we must only disable the
connectors that belong to the current device. Therefore, other heads must be
ignored.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
This commit is contained in:
Michael Tretter 2021-11-30 09:57:53 +01:00 committed by Daniel Stone
parent 345e705e33
commit d990c6a939
1 changed files with 2 additions and 0 deletions

View File

@ -1112,6 +1112,8 @@ drm_pending_state_apply_atomic(struct drm_pending_state *pending_state,
head = to_drm_head(head_base);
connector_id = head->connector.connector_id;
if (head->connector.device != device)
continue;
drm_debug(b, "\t\t[atomic] disabling inactive head %s\n",
head_base->name);