compositor-drm: add specific_device configuration option
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 28 Mar 2017 15:04:27 +0000 (18:04 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Mon, 18 Dec 2017 11:50:41 +0000 (13:50 +0200)
commitb45ed8baf0312915f30aa55b7d380379593edfd5
treeae7f031ce8ee3744421d99c6abd726a6950c5ceb
parentb0341ae972531a6c3bcf43a7f8b66c44f8bc8e49
compositor-drm: add specific_device configuration option

Developers with testing rigs having multiple graphics cards plugged in
often want to test things on a specific card. We have ways to choose a
card through seat assignments, but configuring that run by run is
awkward.

Add a new DRM backend option to try to open a specific device, and quit
if it fails.

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