diff options
author | Bas Nieuwenhuizen <[email protected]> | 2018-10-13 19:20:02 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2018-10-15 12:27:49 +0200 |
commit | 6ed0fd24d4d877fe813b09f2ae47915dd5a2665b (patch) | |
tree | 7aa3aa1ecc34bc3240d69a3e2086e29035ee5b22 /src/amd/vulkan/radv_device.c | |
parent | 38a23517fdc2c4bce5d72cc32cac2b543b460d77 (diff) |
radv: Implement VK_EXT_pci_bus_info.
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_device.c')
-rw-r--r-- | src/amd/vulkan/radv_device.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 88786c999de..c418176978e 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -389,6 +389,7 @@ radv_physical_device_init(struct radv_physical_device *device, if ((device->instance->debug_flags & RADV_DEBUG_INFO)) ac_print_gpu_info(&device->rad_info); + device->bus_info = *drm_device->businfo.pci; return VK_SUCCESS; fail: @@ -1190,6 +1191,15 @@ void radv_GetPhysicalDeviceProperties2( properties->conservativeRasterizationPostDepthCoverage = VK_FALSE; break; } + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PCI_BUS_INFO_PROPERTIES_EXT: { + VkPhysicalDevicePCIBusInfoPropertiesEXT *properties = + (VkPhysicalDevicePCIBusInfoPropertiesEXT *)ext; + properties->pciDomain = pdevice->bus_info.domain; + properties->pciBus = pdevice->bus_info.bus; + properties->pciDevice = pdevice->bus_info.dev; + properties->pciFunction = pdevice->bus_info.func; + break; + } default: break; } |