[PATCH weston 0/3] compositor-drm: Allow high object IDs

Daniel Stone daniels at collabora.com
Thu Feb 9 14:54:25 UTC 2017


The KMS backend was previously using a 32-bit-wide bitmask to mark out
CRTCs and connectors it had already allocated to outputs, to avoid
trying to reuse them across multiple outputs.

Unfortunately, this relied on KMS object IDs remaining below 32, and
even extending that out to 64 doesn't fix that for current drivers.

Instead, replace the bitmasks with list walks (mostly), and one array.

I'm not hugely enthused about the double loops across output_list and
pending_output_list, but this is a fix for the release, whereas
flattening output lists (if that were even a good idea) would have to
wait.

Cheers,
Daniel



More information about the wayland-devel mailing list