compositor-drm: Track unused connectors and CRTCs
authorDaniel Stone <daniels@collabora.com>
Tue, 14 Feb 2017 17:51:30 +0000 (17:51 +0000)
committerDaniel Stone <daniels@collabora.com>
Tue, 6 Feb 2018 12:33:18 +0000 (12:33 +0000)
commit087ddf04e2f9065f4c3cd17f6baac9e9d8047d20
tree6b332748b873b623fb120560d925ef4eb46fb419
parent85f8432911cdea1350709ab9a9ca525a0eefadff
compositor-drm: Track unused connectors and CRTCs

Rather than a more piecemeal approach at backend creation, explicitly
track connectors and CRTCs we do not intend to use, so we can ensure
they are disabled where appropriate.

When we have an updated list of connector and CRTC IDs, we add any which
are not owned by an enabled drm_output to the list. We remove them from
the list when drm_output_repaint() is called for that output, and re-add
them when the output is disabled or destroyed.

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