drm_syncobj_v1

ref: 05e895c463
This commit is contained in:
zeusgoose 2025-05-21 23:19:39 +00:00 committed by Consolatis
parent 34947b7791
commit 052035e7d9

View file

@ -13,6 +13,7 @@
#include <wlr/types/wlr_foreign_toplevel_management_v1.h> #include <wlr/types/wlr_foreign_toplevel_management_v1.h>
#include <wlr/types/wlr_fractional_scale_v1.h> #include <wlr/types/wlr_fractional_scale_v1.h>
#include <wlr/types/wlr_gamma_control_v1.h> #include <wlr/types/wlr_gamma_control_v1.h>
#include <wlr/types/wlr_linux_drm_syncobj_v1.h>
#include <wlr/types/wlr_presentation_time.h> #include <wlr/types/wlr_presentation_time.h>
#include <wlr/types/wlr_primary_selection_v1.h> #include <wlr/types/wlr_primary_selection_v1.h>
#include <wlr/types/wlr_screencopy_v1.h> #include <wlr/types/wlr_screencopy_v1.h>
@ -530,6 +531,12 @@ server_init(struct server *server)
wlr_log(WLR_DEBUG, "unable to initialize dmabuf"); 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 * Autocreates an allocator for us. The allocator is the bridge between
* the renderer and the backend. It handles the buffer creation, * the renderer and the backend. It handles the buffer creation,