From fc7a0b93dd49cb8e585ea23b8eb3eda892536abb Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 11 Dec 2023 17:47:19 +0100 Subject: backend/drm: add wlr_drm_backend_get_parent() Allows compositors to figure out whether a DRM backend is secondary on a multi-GPU setup. --- include/wlr/backend/drm.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/wlr/backend') diff --git a/include/wlr/backend/drm.h b/include/wlr/backend/drm.h index e4fdf65d..e8f9f6a3 100644 --- a/include/wlr/backend/drm.h +++ b/include/wlr/backend/drm.h @@ -43,6 +43,11 @@ struct wlr_backend *wlr_drm_backend_create(struct wl_display *display, bool wlr_backend_is_drm(struct wlr_backend *backend); bool wlr_output_is_drm(struct wlr_output *output); +/** + * Get the parent DRM backend, if any. + */ +struct wlr_backend *wlr_drm_backend_get_parent(struct wlr_backend *backend); + /** * Get the KMS connector object ID. */ -- cgit v1.2.3