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 <lionel.g.landwerlin@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
Jason Ekstrand
2018-10-18 10:08:32 -05:00
parent c20ba1be18
commit baa38c144f
11 changed files with 61 additions and 70 deletions

View File

@@ -89,7 +89,6 @@ VkResult anv_GetPhysicalDeviceSurfaceSupportKHR(
ANV_FROM_HANDLE(anv_physical_device, device, physicalDevice);
return wsi_common_get_surface_support(&device->wsi_device,
device->local_fd,
queueFamilyIndex,
surface,
pSupported);
@@ -183,7 +182,7 @@ VkResult anv_CreateSwapchainKHR(
else
alloc = &device->alloc;
return wsi_common_create_swapchain(wsi_device, _device, device->fd,
return wsi_common_create_swapchain(wsi_device, _device,
pCreateInfo, alloc, pSwapchain);
}
@@ -303,7 +302,6 @@ VkResult anv_GetPhysicalDevicePresentRectanglesKHR(
ANV_FROM_HANDLE(anv_physical_device, device, physicalDevice);
return wsi_common_get_present_rectangles(&device->wsi_device,
device->local_fd,
surface,
pRectCount, pRects);
}