compositor-drm: Remove crtc_allocator
authorDaniel Stone <daniels@collabora.com>
Thu, 9 Feb 2017 13:49:15 +0000 (13:49 +0000)
committerDaniel Stone <daniels@collabora.com>
Thu, 9 Feb 2017 17:39:06 +0000 (17:39 +0000)
commit72c0e1b821ee3ba97e1869414e64a35117e03dbc
tree2a4d3914d216913bffb6431d27ee920c20a45b52
parent2155c47532f5deeb7fb69c074c2f8250974e2d6a
compositor-drm: Remove crtc_allocator

crtc_allocator was used as a bitmask of CRTC IDs, so we didn't try to
use the same CRTC for multiple outputs. Unfortunately, this only works
to the extent that CRTC object IDs fit within the bitmask; though they
were previously, they are not guaranteed to be under 32 or even 64.

Replace the only use of crtc_allocator with a list walk across outputs.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Reported-by: Peter Senna Tschudin <peter.senna@collabora.com>
libweston/compositor-drm.c