diff options
author | Jason Ekstrand <[email protected]> | 2018-10-18 10:08:32 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-10-18 11:29:00 -0500 |
commit | baa38c144f6ab544bccabff3739631bab33e4cd7 (patch) | |
tree | f7206b476b65bd2d3d3b5e5b5544ef15d82685a4 /src/vulkan/wsi/wsi_common.h | |
parent | c20ba1be1843d035f36e9794bee7aea9abfc2f8b (diff) |
vulkan/wsi: Use VK_EXT_pci_bus_info for DRM fd matching
This lets us avoid passing the DRM fd around all over the place and gets
us closer to layer utopia.
Reviewed-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/vulkan/wsi/wsi_common.h')
-rw-r--r-- | src/vulkan/wsi/wsi_common.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/vulkan/wsi/wsi_common.h b/src/vulkan/wsi/wsi_common.h index 5b69c573d9e..f6ca013c2a8 100644 --- a/src/vulkan/wsi/wsi_common.h +++ b/src/vulkan/wsi/wsi_common.h @@ -97,6 +97,8 @@ struct wsi_device { VkPhysicalDeviceMemoryProperties memory_props; uint32_t queue_family_count; + VkPhysicalDevicePCIBusInfoPropertiesEXT pci_bus_info; + bool supports_modifiers; uint64_t (*image_get_modifier)(VkImage image); @@ -166,7 +168,6 @@ ICD_DEFINE_NONDISP_HANDLE_CASTS(VkIcdSurfaceBase, VkSurfaceKHR) VkResult wsi_common_get_surface_support(struct wsi_device *wsi_device, - int local_fd, uint32_t queueFamilyIndex, VkSurfaceKHR surface, VkBool32* pSupported); @@ -201,7 +202,6 @@ wsi_common_get_surface_present_modes(struct wsi_device *wsi_device, VkResult wsi_common_get_present_rectangles(struct wsi_device *wsi, - int local_fd, VkSurfaceKHR surface, uint32_t* pRectCount, VkRect2D* pRects); @@ -226,7 +226,6 @@ wsi_common_acquire_next_image2(const struct wsi_device *wsi, VkResult wsi_common_create_swapchain(struct wsi_device *wsi, VkDevice device, - int fd, const VkSwapchainCreateInfoKHR *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSwapchainKHR *pSwapchain); |