compositor-drm: preserve CRTC routing harder
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 28 Nov 2017 14:11:00 +0000 (16:11 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 2 May 2018 09:08:34 +0000 (12:08 +0300)
commitdb4c7d7237ac297cfdd22b9a1d856d9999399ff2
treec14bdcc88219073b330a930035b5f9f403e5199d
parent27cc4816ae60dc256bbcf12cf78d6d0d36004a82
compositor-drm: preserve CRTC routing harder

If we are processing a connector that does not have an existing routing,
it is possible we pick a CRTC that was previously routed to a connector
we have not enabled yet. If that happens, the latter connector cannot
preserve its routing.

Check that no other connector we might enable later had this CRTC
before.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Acked-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
libweston/compositor-drm.c