From d368028bd5557810af954ef96bf0f4addd97f551 Mon Sep 17 00:00:00 2001 From: Austin Shafer Date: Wed, 31 Jan 2024 15:37:07 -0500 Subject: 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. --- include/render/allocator/allocator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/render/allocator/allocator.h') diff --git a/include/render/allocator/allocator.h b/include/render/allocator/allocator.h index 2abdd43d..5f8bd2a1 100644 --- a/include/render/allocator/allocator.h +++ b/include/render/allocator/allocator.h @@ -4,6 +4,6 @@ #include 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 -- cgit v1.2.3