From b232e42532bdb47600633c59c6faa58e970c5cc5 Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Thu, 20 Jul 2023 11:32:19 -0500 Subject: [PATCH] nvk: Only advertise EXT_pci_bus_info on discrete GPUs Part-of: --- src/nouveau/vulkan/nvk_physical_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nouveau/vulkan/nvk_physical_device.c b/src/nouveau/vulkan/nvk_physical_device.c index f8211b1..19fd445 100644 --- a/src/nouveau/vulkan/nvk_physical_device.c +++ b/src/nouveau/vulkan/nvk_physical_device.c @@ -251,6 +251,7 @@ nvk_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice, case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PCI_BUS_INFO_PROPERTIES_EXT: { VkPhysicalDevicePCIBusInfoPropertiesEXT *p = (void *)ext; + assert(pdev->info.type == NV_DEVICE_TYPE_DIS); p->pciDomain = pdev->info.pci_domain; p->pciBus = pdev->info.pci_bus; p->pciDevice = pdev->info.pci_dev; @@ -367,7 +368,7 @@ nvk_get_device_extensions(const struct nv_device_info *info, .EXT_inline_uniform_block = true, .EXT_mutable_descriptor_type = true, .EXT_non_seamless_cube_map = true, - .EXT_pci_bus_info = true, + .EXT_pci_bus_info = info->type == NV_DEVICE_TYPE_DIS, .EXT_private_data = true, .EXT_provoking_vertex = true, .EXT_robustness2 = true, -- 2.7.4