From e7a358a2a0b728d0e9427a71e3bd5bc977d46c9c Mon Sep 17 00:00:00 2001 From: nyorain Date: Sat, 20 Mar 2021 15:06:16 +0100 Subject: [PATCH] vulkan: Create wlr_drm on init_wl_display --- render/vulkan/renderer.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/render/vulkan/renderer.c b/render/vulkan/renderer.c index 2824c60e01..98b2f38245 100644 --- a/render/vulkan/renderer.c +++ b/render/vulkan/renderer.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -1002,6 +1003,12 @@ static bool vulkan_init_wl_display(struct wlr_renderer *wlr_renderer, return false; } + struct wlr_vk_renderer *renderer = vulkan_get_renderer(wlr_renderer); + assert(renderer->dev->drm_fd >= 0); + if (!wlr_drm_create(wl_display, renderer->dev->drm_fd)) { + return false; + } + return true; }