diff options
author | Simon Ser <contact@emersion.fr> | 2023-02-27 16:49:43 +0100 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2023-02-28 14:25:21 +0000 |
commit | 40117e1e0df79aaffd307a238fb973f0bf1edf78 (patch) | |
tree | 6e70a75c9c02bd2fc5d443e219e6d0990e3e03b2 /include/render | |
parent | 8db0d8289087d9e63438e01f810ef01d82170eb1 (diff) |
render/vulkan: prefer render node for wlr_renderer_get_drm_fd()
Instead of returning a primary node from wlr_renderer_get_drm_fd(),
prefer to return a render node if any.
Diffstat (limited to 'include/render')
-rw-r--r-- | include/render/vulkan.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/render/vulkan.h b/include/render/vulkan.h index 66739c40..d61db616 100644 --- a/include/render/vulkan.h +++ b/include/render/vulkan.h @@ -66,6 +66,7 @@ struct wlr_vk_device { // Tries to find the VkPhysicalDevice for the given drm fd. // Might find none and return VK_NULL_HANDLE. VkPhysicalDevice vulkan_find_drm_phdev(struct wlr_vk_instance *ini, int drm_fd); +int vulkan_open_phdev_drm_fd(VkPhysicalDevice phdev); // Creates a device for the given instance and physical device. struct wlr_vk_device *vulkan_device_create(struct wlr_vk_instance *ini, |