backend/drm: add support for custom modes

Use the CVT algorithm to create a drmModeModeInfo.
This commit is contained in:
Simon Ser 2019-10-26 22:35:51 +02:00 committed by Drew DeVault
parent e97c2c3639
commit 0e57effd38
5 changed files with 307 additions and 6 deletions

View file

@ -32,6 +32,7 @@ bool wlr_output_is_drm(struct wlr_output *output);
* Add mode to the list of available modes
*/
typedef struct _drmModeModeInfo drmModeModeInfo;
bool wlr_drm_connector_add_mode(struct wlr_output *output, const drmModeModeInfo *mode);
struct wlr_output_mode *wlr_drm_connector_add_mode(struct wlr_output *output,
const drmModeModeInfo *mode);
#endif