compositor-drm: drm_output_enable updates unused_crtcs/connectors
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 9 Feb 2018 11:31:50 +0000 (13:31 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Mon, 12 Feb 2018 14:40:25 +0000 (16:40 +0200)
commit9068e011cd8b45798d53d92b3adef9be9167d252
treef126974f93ed84171f87d7e3315d3545167351e0
parentc1bcce6a259fa658129e6356098c3985dc50b0a0
compositor-drm: drm_output_enable updates unused_crtcs/connectors

Let drm_output_enable() remove the CRTC and the connector from the
unused id arrays.

In the future when a list of drm_heads supersedes unused_connectors
array, the usedness of a connector will be determined by the enabled
state of the output the connector (head) is attached to. The enabled
state is turned on by drm_output_enable(). If unused_crtcs array was
still updated in drm_output_repaint(), the CRTC and connector usedness
would be tracked in different places. Logically the two belong together.

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