aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-05-30 13:04:58 +0200
committerAlexander Orzechowski <alex@ozal.ski>2023-05-31 22:37:12 +0000
commit30aca4df0de6797df4d1f41550958935f986a4c9 (patch)
treee1c17b8ab731183a45b56526e29f57d8199753f9 /include
parentba276e5ac21ecfa5bf1e3b9c7ae140c4880e2a3a (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/wlr/backend/drm.h7
1 files changed, 7 insertions, 0 deletions
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
@@ -79,6 +79,13 @@ 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.
*
* On some devices the panel is mounted in the casing in such a way that the