Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
vulkan: Create wlr_drm on init_wl_display
Browse files Browse the repository at this point in the history
  • Loading branch information
nyorain committed Apr 11, 2021
1 parent 22216f6 commit e7a358a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions render/vulkan/renderer.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <vulkan/vulkan.h>
#include <render/vulkan.h>
#include <wlr/render/interface.h>
#include <wlr/types/wlr_drm.h>
#include <wlr/util/log.h>
#include <wlr/render/vulkan.h>
#include <wlr/backend/interface.h>
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit e7a358a

Please sign in to comment.