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.
This commit is contained in:
Simon Ser 2021-04-29 09:48:33 +02:00
parent 619a975025
commit 5be76bb047
2 changed files with 13 additions and 3 deletions

View file

@ -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