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.
This commit is contained in:
Simon Ser 2023-02-27 16:49:43 +01:00 committed by Simon Zeni
parent 8db0d82890
commit 40117e1e0d
3 changed files with 54 additions and 3 deletions

View file

@ -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,