From 5be76bb047f7260882ba7930eebfe709950536ee Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 29 Apr 2021 09:48:33 +0200 Subject: render/allocator: add allocator_autocreate_with_drm_fd Same as wlr_allocator_autocreate, but allows the caller to force a DRM FD. Similar to renderer_autocreate_with_drm_fd. --- include/render/allocator.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/render/allocator.h b/include/render/allocator.h index 4d8e68f4..4f1cbd0f 100644 --- a/include/render/allocator.h +++ b/include/render/allocator.h @@ -46,4 +46,7 @@ struct wlr_buffer *wlr_allocator_create_buffer(struct wlr_allocator *alloc, void wlr_allocator_init(struct wlr_allocator *alloc, const struct wlr_allocator_interface *impl); +struct wlr_allocator *allocator_autocreate_with_drm_fd( + struct wlr_backend *backend, struct wlr_renderer *renderer, int drm_fd); + #endif -- cgit v1.2.3