From 052035e7d9e9cc855813a7e9ac70e4d35fd7383e Mon Sep 17 00:00:00 2001 From: zeusgoose <193160247+zeusgoose@users.noreply.github.com> Date: Wed, 21 May 2025 23:19:39 +0000 Subject: [PATCH] drm_syncobj_v1 ref: https://github.com/swaywm/sway/commit/05e895c4638293a6bfe594ff0cae4eaab63b740e --- src/server.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/server.c b/src/server.c index ccbd57ba..4cfd015a 100644 --- a/src/server.c +++ b/src/server.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -530,6 +531,12 @@ server_init(struct server *server) wlr_log(WLR_DEBUG, "unable to initialize dmabuf"); } + if (wlr_renderer_get_drm_fd(server->renderer) >= 0 && + server->renderer->features.timeline) { + wlr_linux_drm_syncobj_manager_v1_create(server->wl_display, 1, + wlr_renderer_get_drm_fd(server->renderer)); + } + /* * Autocreates an allocator for us. The allocator is the bridge between * the renderer and the backend. It handles the buffer creation,