compositor-drm: allow mode frequency selection
authorFabien Dessenne <fabien.dessenne@st.com>
Tue, 17 Jan 2017 16:17:21 +0000 (17:17 +0100)
committerDaniel Stone <daniels@collabora.com>
Tue, 17 Jan 2017 16:38:43 +0000 (16:38 +0000)
commit2d66a7d88306a23b305ca90023c9498be450ee4c
tree0f153410a3ecf38858af745ee3848c00ca167ae6
parent82681571cf2407ed61bd1d29065583ddd4c2e525
compositor-drm: allow mode frequency selection

As an option, allow to specify a mode (from the configuration file) by
its refresh rate.
Example of valid syntax:
- "mode=1920x1080"    Select a 1920x1080 mode, refresh rate undefined.
- "mode=1920x1080@60" Select the (or one of the) 1920x1080 60 Hz mode.

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
libweston/compositor-drm.c
weston.ini.in