mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
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:
parent
8db0d82890
commit
40117e1e0d
3 changed files with 54 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue