aboutsummaryrefslogtreecommitdiff
path: root/include/render
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-04-29 09:48:33 +0200
committerSimon Ser <contact@emersion.fr>2021-04-29 15:58:56 +0200
commit5be76bb047f7260882ba7930eebfe709950536ee (patch)
treedc6ae2ed5acf15a22d822d4922d249b23b3059e0 /include/render
parent619a9750251a1bff5bef7a1bcd22ee80a56a453f (diff)
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.
Diffstat (limited to 'include/render')
-rw-r--r--include/render/allocator.h3
1 files changed, 3 insertions, 0 deletions
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