From 4c4d74a564f1fad15860eb60aa4392a541a993fc Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 7 Nov 2024 18:50:25 +0100 Subject: [PATCH] backend/drm: use public wlr_allocator_autocreate() We don't need any custom behavior since d8c0707e2700 ("backend/drm: return secondary backend DRM FD"). --- backend/drm/renderer.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/drm/renderer.c b/backend/drm/renderer.c index 60acc57b9..08ed62451 100644 --- a/backend/drm/renderer.c +++ b/backend/drm/renderer.c @@ -1,5 +1,6 @@ #include #include +#include #include #include #include @@ -9,7 +10,6 @@ #include "backend/drm/renderer.h" #include "backend/backend.h" #include "render/drm_format_set.h" -#include "render/allocator/allocator.h" #include "render/pixel_format.h" #include "render/wlr_renderer.h" @@ -21,9 +21,7 @@ bool init_drm_renderer(struct wlr_drm_backend *drm, return false; } - uint32_t backend_caps = backend_get_buffer_caps(&drm->backend); - renderer->allocator = allocator_autocreate_with_drm_fd(backend_caps, - renderer->wlr_rend, drm->fd); + renderer->allocator = wlr_allocator_autocreate(&drm->backend, renderer->wlr_rend); if (renderer->allocator == NULL) { wlr_log(WLR_ERROR, "Failed to create allocator"); wlr_renderer_destroy(renderer->wlr_rend);