allocator: remove backend parameter in allocator_autocreate_with_drm_fd

Since we only use the backend capabilities here we can simply pass
them in directly. This allows other locations to create an allocator
even if they don't have a backend. They can simply specify the caps
they want instead.
This commit is contained in:
Austin Shafer 2024-01-31 15:37:07 -05:00
parent a8aeadeab2
commit d368028bd5
3 changed files with 8 additions and 5 deletions

View file

@ -4,6 +4,6 @@
#include <wlr/render/allocator.h>
struct wlr_allocator *allocator_autocreate_with_drm_fd(
struct wlr_backend *backend, struct wlr_renderer *renderer, int drm_fd);
uint32_t backend_caps, struct wlr_renderer *renderer, int drm_fd);
#endif