check if the backend supports explicit sync before creating the object (wlroots!4848)

References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4848
This commit is contained in:
Leonardo Hernández Hernández 2024-10-27 20:26:55 -06:00
parent 002c7d2204
commit 6ca87210d4
No known key found for this signature in database
GPG Key ID: E538897EE11B9624

3
dwl.c
View File

@ -2436,7 +2436,8 @@ setup(void)
wlr_linux_dmabuf_v1_create_with_renderer(dpy, 5, drw));
}
if ((drm_fd = wlr_renderer_get_drm_fd(drw)) >= 0 && drw->features.timeline)
if ((drm_fd = wlr_renderer_get_drm_fd(drw)) >= 0 && drw->features.timeline
&& backend->features.timeline)
wlr_linux_drm_syncobj_manager_v1_create(dpy, 1, drm_fd);
/* Autocreates an allocator for us.