From 30aca4df0de6797df4d1f41550958935f986a4c9 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 30 May 2023 13:04:58 +0200 Subject: backend/drm: introduce wlr_drm_mode_get_info() This allows compositors to get back the raw drmModeModeInfo and look at DRM-specific fields and flags. --- include/wlr/backend/drm.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/wlr/backend/drm.h b/include/wlr/backend/drm.h index 414d90c0..e4fdf65d 100644 --- a/include/wlr/backend/drm.h +++ b/include/wlr/backend/drm.h @@ -78,6 +78,13 @@ void wlr_drm_lease_terminate(struct wlr_drm_lease *lease); struct wlr_output_mode *wlr_drm_connector_add_mode(struct wlr_output *output, const drmModeModeInfo *mode); +/** + * Get the raw DRM mode information from a struct wlr_output_mode. + * + * The mode passed in must belong to a DRM output. + */ +const drmModeModeInfo *wlr_drm_mode_get_info(struct wlr_output_mode *mode); + /** * Get the connector's panel orientation. * -- cgit v1.2.3