Lines Matching defs:physical_devices

342         driver.physical_devices.front().extensions.push_back(ext);
369 driver.physical_devices.front().extensions.push_back(ext);
487 .physical_devices.at(0)
521 driver.physical_devices.front().extensions.emplace_back("MyDriverExtension0", 4);
522 driver.physical_devices.front().extensions.emplace_back("MyDriverExtension1", 7);
524 exts.insert(exts.begin(), driver.physical_devices.front().extensions.begin(), driver.physical_devices.front().extensions.end());
552 driver.physical_devices.front().extensions.emplace_back("MyDriverExtension0", 4);
553 driver.physical_devices.front().extensions.emplace_back("MyDriverExtension1", 7);
554 driver.physical_devices.front().extensions.emplace_back("MyDriverExtension2", 6);
555 driver.physical_devices.front().extensions.emplace_back("MyDriverExtension3", 9);
557 exts.insert(exts.begin(), driver.physical_devices.front().extensions.begin(), driver.physical_devices.front().extensions.end());
637 driver.physical_devices.front().extensions.emplace_back("MyDriverExtension0", 4);
638 driver.physical_devices.front().extensions.emplace_back("MyDriverExtension1", 7);
640 driver.physical_devices.front().extensions.insert(driver.physical_devices.front().extensions.end(), exts.begin(), exts.end());
644 driver.physical_devices.front().extensions = exts;
672 driver.physical_devices.front().extensions = exts;
693 uint32_t physical_count = static_cast<uint32_t>(driver.physical_devices.size());
694 uint32_t returned_physical_count = static_cast<uint32_t>(driver.physical_devices.size());
709 driver.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
715 uint32_t physical_count = static_cast<uint32_t>(driver.physical_devices.size());
735 driver.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
741 uint32_t physical_count_one_call = static_cast<uint32_t>(driver.physical_devices.size());
750 uint32_t physical_count = static_cast<uint32_t>(driver.physical_devices.size());
770 driver.physical_devices.emplace_back(std::string("physical_device_") + std::to_string(i));
771 driver.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
779 ASSERT_EQ(physical_count, driver.physical_devices.size());
826 driver.physical_devices.clear();
847 driver.physical_devices.emplace_back(std::string("physical_device_") + std::to_string(i));
854 uint32_t physical_count = static_cast<uint32_t>(driver.physical_devices.size());
855 uint32_t returned_physical_count = static_cast<uint32_t>(driver.physical_devices.size());
863 for (uint32_t count = 0; count < driver.physical_devices.size(); ++count) {
873 driver.physical_devices.emplace_back(std::string("physical_device_") + std::to_string(i));
880 uint32_t physical_count = static_cast<uint32_t>(driver.physical_devices.size());
894 for (uint32_t count = 0; count < driver.physical_devices.size(); ++count) {
909 driver.physical_devices.emplace_back(std::string("physical_device_") + std::to_string(i));
916 uint32_t physical_count = static_cast<uint32_t>(driver.physical_devices.size());
930 for (uint32_t count = 0; count < driver.physical_devices.size(); ++count) {
944 driver.physical_devices.emplace_back("physical_device_0");
945 driver.physical_devices.emplace_back("physical_device_1");
950 uint32_t physical_count = static_cast<uint32_t>(driver.physical_devices.size());
956 driver.physical_devices.emplace_back("physical_device_2");
957 driver.physical_devices.emplace_back("physical_device_3");
963 physical_count = static_cast<uint32_t>(driver.physical_devices.size());
984 driver.physical_devices.emplace_back(std::string("physical_device_") + std::to_string(i));
990 uint32_t physical_count = static_cast<uint32_t>(driver.physical_devices.size());
997 driver.physical_devices.erase(std::next(driver.physical_devices.begin()));
999 physical_count = static_cast<uint32_t>(driver.physical_devices.size());
1040 driver.physical_devices.emplace_back(std::string("physical_device_") + std::to_string(i));
1047 uint32_t physical_count = static_cast<uint32_t>(driver.physical_devices.size());
1054 driver.physical_devices.erase(std::next(driver.physical_devices.begin()));
1057 physical_count = static_cast<uint32_t>(driver.physical_devices.size());
1064 driver.physical_devices.emplace(driver.physical_devices.begin(), "physical_device_B");
1065 driver.physical_devices.emplace(driver.physical_devices.begin(), "physical_device_A");
1068 physical_count = static_cast<uint32_t>(driver.physical_devices.size());
1081 driver.physical_devices.pop_back();
1084 physical_count = static_cast<uint32_t>(driver.physical_devices.size());
1094 driver.physical_devices.insert(driver.physical_devices.begin() + 2, "physical_device_C");
1097 physical_count = static_cast<uint32_t>(driver.physical_devices.size());
1294 driver.physical_devices.emplace_back("physical_device_0");
1311 driver.physical_devices.emplace_back("physical_device_0");
1618 driver.physical_devices.emplace_back(std::string("physical_device_") + std::to_string(i));
1619 driver.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
1620 driver.physical_devices.back().properties.apiVersion = VK_API_VERSION_1_1;
1622 driver.physical_device_groups.emplace_back(driver.physical_devices[0]);
1623 driver.physical_device_groups.back().use_physical_device(driver.physical_devices[1]);
1624 driver.physical_device_groups.emplace_back(driver.physical_devices[2]);
1633 auto physical_devices = std::vector<VkPhysicalDevice>(max_physical_device_count);
1635 ASSERT_EQ(VK_SUCCESS, inst->vkEnumeratePhysicalDevices(inst, &returned_phys_dev_count, physical_devices.data()));
1636 handle_assert_has_values(physical_devices);
1650 if (physical_devices[dev] == group_props[group].physicalDevices[g_dev]) {
1700 auto physical_devices = std::vector<VkPhysicalDevice>(max_physical_device_count);
1702 ASSERT_EQ(VK_SUCCESS, inst->vkEnumeratePhysicalDevices(inst, &returned_phys_dev_count, physical_devices.data()));
1703 handle_assert_has_values(physical_devices);
1717 if (physical_devices[dev] == group_props[group].physicalDevices[g_dev]) {
1752 driver.physical_devices.emplace_back(std::string("physical_device_") + std::to_string(i));
1753 driver.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
1754 driver.physical_devices.back().properties.apiVersion = VK_API_VERSION_1_1;
1756 driver.physical_device_groups.emplace_back(driver.physical_devices[0]);
1757 driver.physical_device_groups.back().use_physical_device(driver.physical_devices[1]);
1758 driver.physical_device_groups.emplace_back(driver.physical_devices[2]);
1767 auto physical_devices = std::vector<VkPhysicalDevice>(max_physical_device_count);
1769 ASSERT_EQ(VK_SUCCESS, inst->vkEnumeratePhysicalDevices(inst, &returned_phys_dev_count, physical_devices.data()));
1770 handle_assert_has_values(physical_devices);
1787 if (physical_devices[dev] == group_props[group].physicalDevices[g_dev]) {
1815 auto physical_devices = std::vector<VkPhysicalDevice>(max_physical_device_count);
1817 ASSERT_EQ(VK_SUCCESS, inst->vkEnumeratePhysicalDevices(inst, &returned_phys_dev_count, physical_devices.data()));
1818 handle_assert_has_values(physical_devices);
1837 if (physical_devices[dev] == group_props[group].physicalDevices[g_dev]) {
1869 driver.physical_devices.emplace_back(std::string("physical_device_") + std::to_string(i));
1870 driver.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
1871 driver.physical_devices.back().properties.apiVersion = VK_API_VERSION_1_1;
1873 driver.physical_device_groups.emplace_back(driver.physical_devices[0]);
1874 driver.physical_device_groups.back().use_physical_device(driver.physical_devices[1]);
1875 driver.physical_device_groups.emplace_back(driver.physical_devices[2]);
1988 driver.physical_devices.emplace_back(std::string("physical_device_") + std::to_string(i));
1989 driver.physical_devices.back().properties.apiVersion = VK_API_VERSION_1_1;
1993 driver.physical_device_groups.emplace_back(driver.physical_devices[0]);
1994 driver.physical_device_groups.emplace_back(driver.physical_devices[1]);
1996 .use_physical_device(driver.physical_devices[2])
1997 .use_physical_device(driver.physical_devices[3]);
1998 driver.physical_device_groups.emplace_back(driver.physical_devices[4]);
1999 driver.physical_device_groups.back().use_physical_device(driver.physical_devices[5]);
2076 driver.physical_devices.emplace_back(std::string("physical_device_") + std::to_string(i));
2077 driver.physical_devices.back().properties.apiVersion = VK_API_VERSION_1_1;
2081 driver.physical_device_groups.emplace_back(driver.physical_devices[0]);
2082 driver.physical_device_groups.emplace_back(driver.physical_devices[1]);
2084 .use_physical_device(driver.physical_devices[2])
2085 .use_physical_device(driver.physical_devices[3]);
2086 driver.physical_device_groups.emplace_back(driver.physical_devices[4]);
2087 driver.physical_device_groups.back().use_physical_device(driver.physical_devices[5]);
2110 driver.physical_device_groups.insert(driver.physical_device_groups.begin() + 2, driver.physical_devices[6]);
2171 driver.physical_devices.emplace_back(std::string("physical_device_") + std::to_string(i));
2172 driver.physical_devices.back().properties.apiVersion = VK_API_VERSION_1_1;
2176 driver.physical_device_groups.emplace_back(driver.physical_devices[0]);
2177 driver.physical_device_groups.emplace_back(driver.physical_devices[1]);
2179 .use_physical_device(driver.physical_devices[2])
2180 .use_physical_device(driver.physical_devices[3]);
2181 driver.physical_device_groups.emplace_back(driver.physical_devices[4]);
2182 driver.physical_device_groups.emplace_back(driver.physical_devices[5]);
2183 driver.physical_device_groups.back().use_physical_device(driver.physical_devices[6]);
2258 driver.physical_devices.emplace_back(std::string("physical_device_") + std::to_string(i));
2259 driver.physical_devices.back().properties.apiVersion = VK_API_VERSION_1_1;
2263 driver.physical_device_groups.emplace_back(driver.physical_devices[0]);
2264 driver.physical_device_groups.emplace_back(driver.physical_devices[1]);
2266 .use_physical_device(driver.physical_devices[2])
2267 .use_physical_device(driver.physical_devices[3]);
2268 driver.physical_device_groups.emplace_back(driver.physical_devices[4]);
2269 driver.physical_device_groups.back().use_physical_device(driver.physical_devices[5]);
2291 driver.physical_device_groups[1].use_physical_device(driver.physical_devices[6]);
2344 driver.physical_devices.emplace_back(std::string("physical_device_") + std::to_string(i));
2345 driver.physical_devices.back().properties.apiVersion = VK_API_VERSION_1_1;
2349 driver.physical_device_groups.emplace_back(driver.physical_devices[0]);
2350 driver.physical_device_groups.emplace_back(driver.physical_devices[1]);
2352 .use_physical_device(driver.physical_devices[2])
2353 .use_physical_device(driver.physical_devices[3]);
2354 driver.physical_device_groups.emplace_back(driver.physical_devices[4]);
2355 driver.physical_device_groups.back().use_physical_device(driver.physical_devices[5]);
2441 driver.physical_devices.emplace_back(std::string("physical_device_") + std::to_string(i));
2442 driver.physical_devices.back().properties.apiVersion = VK_API_VERSION_1_1;
2446 driver.physical_device_groups.emplace_back(driver.physical_devices[0]);
2447 driver.physical_device_groups.emplace_back(driver.physical_devices[1]);
2449 .use_physical_device(driver.physical_devices[2])
2450 .use_physical_device(driver.physical_devices[3]);
2451 driver.physical_device_groups.emplace_back(driver.physical_devices[4]);
2452 driver.physical_device_groups.back().use_physical_device(driver.physical_devices[5]);
2479 driver.physical_device_groups.insert(driver.physical_device_groups.begin() + 2, driver.physical_devices[6]);
2525 .use_physical_device(driver.physical_devices[7])
2526 .use_physical_device(driver.physical_devices[8]);
2580 cur_icd_0.physical_devices.push_back({"pd0"});
2581 cur_icd_0.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
2582 FillInRandomDeviceProps(cur_icd_0.physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU, VK_API_VERSION_1_1,
2584 cur_icd_0.physical_devices.push_back({"pd1"});
2585 cur_icd_0.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
2586 FillInRandomDeviceProps(cur_icd_0.physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU,
2588 cur_icd_0.physical_devices.push_back({"pd2"});
2589 cur_icd_0.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
2590 FillInRandomDeviceProps(cur_icd_0.physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU, VK_API_VERSION_1_1,
2594 .use_physical_device(cur_icd_0.physical_devices[0])
2595 .use_physical_device(cur_icd_0.physical_devices[2]);
2596 cur_icd_0.physical_device_groups.push_back({cur_icd_0.physical_devices[1]});
2601 cur_icd_1.physical_devices.push_back({"pd4"});
2602 cur_icd_1.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
2603 FillInRandomDeviceProps(cur_icd_1.physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU, VK_API_VERSION_1_1,
2605 cur_icd_1.physical_devices.push_back({"pd5"});
2606 cur_icd_1.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
2607 FillInRandomDeviceProps(cur_icd_1.physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU, VK_API_VERSION_1_1,
2609 cur_icd_1.physical_devices.push_back({"pd6"});
2610 cur_icd_1.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
2611 FillInRandomDeviceProps(cur_icd_1.physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU, VK_API_VERSION_1_1,
2615 .use_physical_device(cur_icd_1.physical_devices[1])
2616 .use_physical_device(cur_icd_1.physical_devices[2]);
2617 cur_icd_1.physical_device_groups.push_back({cur_icd_1.physical_devices[0]});
2707 .physical_devices.back()
2753 env.get_test_icd(0).physical_devices.push_back({"pd0"});
2754 env.get_test_icd(0).physical_devices.back().set_pci_bus(7);
2755 FillInRandomDeviceProps(env.get_test_icd(0).physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU,
2757 env.get_test_icd(0).physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
2758 env.get_test_icd(0).physical_devices.push_back({"pd1"});
2759 env.get_test_icd(0).physical_devices.back().set_pci_bus(3);
2760 FillInRandomDeviceProps(env.get_test_icd(0).physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU,
2762 env.get_test_icd(0).physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
2766 env.get_test_icd(1).physical_devices.push_back({"pd2"});
2767 env.get_test_icd(1).physical_devices.back().set_pci_bus(0);
2768 FillInRandomDeviceProps(env.get_test_icd(1).physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_CPU, VK_API_VERSION_1_0,
2770 env.get_test_icd(1).physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
2774 env.get_test_icd(2).physical_devices.push_back({"pd3"});
2775 env.get_test_icd(2).physical_devices.back().set_pci_bus(1);
2776 FillInRandomDeviceProps(env.get_test_icd(2).physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU,
2778 env.get_test_icd(2).physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
2779 env.get_test_icd(2).physical_devices.push_back({"pd4"});
2780 env.get_test_icd(2).physical_devices.back().set_pci_bus(4);
2781 FillInRandomDeviceProps(env.get_test_icd(2).physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU,
2783 env.get_test_icd(2).physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
2787 env.get_test_icd(3).physical_devices.push_back({"pd5"});
2788 env.get_test_icd(3).physical_devices.back().set_pci_bus(0);
2789 FillInRandomDeviceProps(env.get_test_icd(3).physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU,
2791 env.get_test_icd(3).physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
2798 std::array<VkPhysicalDevice, max_phys_devs> physical_devices;
2799 ASSERT_EQ(VK_SUCCESS, instance->vkEnumeratePhysicalDevices(instance, &device_count, physical_devices.data()));
2804 instance->vkGetPhysicalDeviceProperties(physical_devices[dev], &props);
2853 ASSERT_EQ(physical_devices[dev], physical_devices_again[dev]);
2861 env.get_test_icd(0).physical_devices.push_back({"pd0"});
2862 env.get_test_icd(0).physical_devices.back().set_pci_bus(7);
2863 FillInRandomDeviceProps(env.get_test_icd(0).physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU,
2865 env.get_test_icd(0).physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
2866 env.get_test_icd(0).physical_devices.push_back({"pd1"});
2867 env.get_test_icd(0).physical_devices.back().set_pci_bus(3);
2868 FillInRandomDeviceProps(env.get_test_icd(0).physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU,
2870 env.get_test_icd(0).physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
2874 env.get_test_icd(1).physical_devices.push_back({"pd2"});
2875 env.get_test_icd(1).physical_devices.back().set_pci_bus(0);
2876 FillInRandomDeviceProps(env.get_test_icd(1).physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_CPU, VK_API_VERSION_1_0,
2878 env.get_test_icd(1).physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
2882 env.get_test_icd(2).physical_devices.push_back({"pd3"});
2883 env.get_test_icd(2).physical_devices.back().set_pci_bus(1);
2884 FillInRandomDeviceProps(env.get_test_icd(2).physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU,
2886 env.get_test_icd(2).physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
2887 env.get_test_icd(2).physical_devices.push_back({"pd4"});
2888 env.get_test_icd(2).physical_devices.back().set_pci_bus(4);
2889 FillInRandomDeviceProps(env.get_test_icd(2).physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU,
2891 env.get_test_icd(2).physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
2895 env.get_test_icd(3).physical_devices.push_back({"pd5"});
2896 env.get_test_icd(3).physical_devices.back().set_pci_bus(0);
2897 FillInRandomDeviceProps(env.get_test_icd(3).physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU,
2899 env.get_test_icd(3).physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
2910 std::array<VkPhysicalDevice, max_phys_devs> physical_devices;
2911 ASSERT_EQ(VK_SUCCESS, instance->vkEnumeratePhysicalDevices(instance, &device_count, physical_devices.data()));
2916 instance->vkGetPhysicalDeviceProperties(physical_devices[dev], &props);
2920 GetPhysDevProps2(physical_devices[dev], &props2);
2975 ASSERT_EQ(physical_devices[dev], physical_devices_again[dev]);
2984 env.get_test_icd(0).physical_devices.push_back({"pd0"});
2985 env.get_test_icd(0).physical_devices.back().set_pci_bus(7);
2986 FillInRandomDeviceProps(env.get_test_icd(0).physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU,
2988 env.get_test_icd(0).physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
2989 env.get_test_icd(0).physical_devices.push_back({"pd1"});
2990 env.get_test_icd(0).physical_devices.back().set_pci_bus(3);
2991 FillInRandomDeviceProps(env.get_test_icd(0).physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU,
2993 env.get_test_icd(0).physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
2998 env.get_test_icd(1).physical_devices.push_back({"pd2"});
2999 env.get_test_icd(1).physical_devices.back().set_pci_bus(0);
3000 FillInRandomDeviceProps(env.get_test_icd(1).physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_CPU, VK_API_VERSION_1_0,
3002 env.get_test_icd(1).physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
3007 env.get_test_icd(2).physical_devices.push_back({"pd3"});
3008 env.get_test_icd(2).physical_devices.back().set_pci_bus(1);
3009 FillInRandomDeviceProps(env.get_test_icd(2).physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU,
3011 env.get_test_icd(2).physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
3012 env.get_test_icd(2).physical_devices.push_back({"pd4"});
3013 env.get_test_icd(2).physical_devices.back().set_pci_bus(4);
3014 FillInRandomDeviceProps(env.get_test_icd(2).physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU,
3016 env.get_test_icd(2).physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
3021 env.get_test_icd(3).physical_devices.push_back({"pd5"});
3022 env.get_test_icd(3).physical_devices.back().set_pci_bus(0);
3023 FillInRandomDeviceProps(env.get_test_icd(3).physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU,
3025 env.get_test_icd(3).physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
3036 std::array<VkPhysicalDevice, max_phys_devs> physical_devices;
3037 ASSERT_EQ(VK_SUCCESS, instance->vkEnumeratePhysicalDevices(instance, &device_count, physical_devices.data()));
3042 instance->vkGetPhysicalDeviceProperties(physical_devices[dev], &props);
3046 GetPhysDevProps2(physical_devices[dev], &props2);
3101 ASSERT_EQ(physical_devices[dev], physical_devices_again[dev]);
3112 env.get_test_icd(0).physical_devices.push_back({"pd0"});
3113 FillInRandomDeviceProps(env.get_test_icd(0).physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU,
3115 env.get_test_icd(0).physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
3116 env.get_test_icd(0).physical_devices.push_back({"pd1"});
3117 FillInRandomDeviceProps(env.get_test_icd(0).physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU,
3119 env.get_test_icd(0).physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
3123 env.get_test_icd(1).physical_devices.push_back({"pd2"});
3124 FillInRandomDeviceProps(env.get_test_icd(1).physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_CPU, VK_API_VERSION_1_0,
3126 env.get_test_icd(1).physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
3130 env.get_test_icd(2).physical_devices.push_back({"pd3"});
3131 FillInRandomDeviceProps(env.get_test_icd(2).physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU,
3133 env.get_test_icd(2).physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
3134 env.get_test_icd(2).physical_devices.push_back({"pd4"});
3135 FillInRandomDeviceProps(env.get_test_icd(2).physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU,
3137 env.get_test_icd(2).physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
3141 env.get_test_icd(3).physical_devices.push_back({"pd5"});
3142 FillInRandomDeviceProps(env.get_test_icd(3).physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU,
3144 env.get_test_icd(3).physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
3153 std::array<VkPhysicalDevice, max_phys_devs> physical_devices;
3154 ASSERT_EQ(VK_SUCCESS, instance->vkEnumeratePhysicalDevices(instance, &device_count, physical_devices.data()));
3162 instance->vkGetPhysicalDeviceProperties(physical_devices[dev], &props);
3209 ASSERT_EQ(physical_devices[dev], physical_devices_again[dev]);
3235 cur_icd_0.physical_devices.push_back({"pd0"});
3236 cur_icd_0.physical_devices.back().set_pci_bus(7);
3237 cur_icd_0.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
3238 FillInRandomDeviceProps(cur_icd_0.physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU, VK_API_VERSION_1_1,
3240 cur_icd_0.physical_devices.push_back({"pd1"});
3241 cur_icd_0.physical_devices.back().set_pci_bus(3);
3242 cur_icd_0.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
3243 FillInRandomDeviceProps(cur_icd_0.physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU,
3245 cur_icd_0.physical_devices.push_back({"pd2"});
3246 cur_icd_0.physical_devices.back().set_pci_bus(6);
3247 cur_icd_0.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
3248 FillInRandomDeviceProps(cur_icd_0.physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU, VK_API_VERSION_1_1,
3252 .use_physical_device(cur_icd_0.physical_devices[0])
3253 .use_physical_device(cur_icd_0.physical_devices[2]);
3254 cur_icd_0.physical_device_groups.push_back({cur_icd_0.physical_devices[1]});
3259 cur_icd_1.physical_devices.push_back({"pd3"});
3260 cur_icd_1.physical_devices.back().set_pci_bus(0);
3261 cur_icd_1.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
3262 FillInRandomDeviceProps(cur_icd_1.physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_CPU, VK_API_VERSION_1_1, 1,
3268 cur_icd_2.physical_devices.push_back({"pd4"});
3269 cur_icd_2.physical_devices.back().set_pci_bus(1);
3270 cur_icd_2.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
3271 FillInRandomDeviceProps(cur_icd_2.physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU, VK_API_VERSION_1_1,
3273 cur_icd_2.physical_devices.push_back({"pd5"});
3274 cur_icd_2.physical_devices.back().set_pci_bus(4);
3275 cur_icd_2.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
3276 FillInRandomDeviceProps(cur_icd_2.physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU, VK_API_VERSION_1_1,
3278 cur_icd_2.physical_devices.push_back({"pd6"});
3279 cur_icd_2.physical_devices.back().set_pci_bus(2);
3280 cur_icd_2.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
3281 FillInRandomDeviceProps(cur_icd_2.physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU, VK_API_VERSION_1_1,
3285 .use_physical_device(cur_icd_2.physical_devices[1])
3286 .use_physical_device(cur_icd_2.physical_devices[2]);
3287 cur_icd_2.physical_device_groups.push_back({cur_icd_2.physical_devices[0]});
3292 cur_icd_3.physical_devices.push_back({"pd7"});
3293 cur_icd_3.physical_devices.back().set_pci_bus(0);
3294 cur_icd_3.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
3295 FillInRandomDeviceProps(cur_icd_3.physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU, VK_API_VERSION_1_1,
3307 std::array<VkPhysicalDevice, max_phys_devs> physical_devices;
3308 ASSERT_EQ(VK_SUCCESS, inst->vkEnumeratePhysicalDevices(inst, &device_count, physical_devices.data()));
3428 cur_icd_0.physical_devices.push_back({"pd0"});
3429 cur_icd_0.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
3430 FillInRandomDeviceProps(cur_icd_0.physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU, VK_API_VERSION_1_1,
3432 cur_icd_0.physical_devices.push_back({"pd1"});
3433 cur_icd_0.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
3434 FillInRandomDeviceProps(cur_icd_0.physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU,
3436 cur_icd_0.physical_devices.push_back({"pd2"});
3437 cur_icd_0.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
3438 FillInRandomDeviceProps(cur_icd_0.physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU, VK_API_VERSION_1_1,
3442 .use_physical_device(cur_icd_0.physical_devices[0])
3443 .use_physical_device(cur_icd_0.physical_devices[2]);
3444 cur_icd_0.physical_device_groups.push_back({cur_icd_0.physical_devices[1]});
3449 cur_icd_1.physical_devices.push_back({"pd3"});
3450 cur_icd_1.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
3451 FillInRandomDeviceProps(cur_icd_1.physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_CPU, VK_API_VERSION_1_1, 1,
3457 cur_icd_2.physical_devices.push_back({"pd4"});
3458 cur_icd_2.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
3459 FillInRandomDeviceProps(cur_icd_2.physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU, VK_API_VERSION_1_1,
3461 cur_icd_2.physical_devices.push_back({"pd5"});
3462 cur_icd_2.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
3463 FillInRandomDeviceProps(cur_icd_2.physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU, VK_API_VERSION_1_1,
3465 cur_icd_2.physical_devices.push_back({"pd6"});
3466 cur_icd_2.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
3467 FillInRandomDeviceProps(cur_icd_2.physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU, VK_API_VERSION_1_1,
3471 .use_physical_device(cur_icd_2.physical_devices[1])
3472 .use_physical_device(cur_icd_2.physical_devices[2]);
3473 cur_icd_2.physical_device_groups.push_back({cur_icd_2.physical_devices[0]});
3478 cur_icd_3.physical_devices.push_back({"pd7"});
3479 cur_icd_3.physical_devices.back().extensions.push_back({VK_EXT_PCI_BUS_INFO_EXTENSION_NAME, 0});
3480 FillInRandomDeviceProps(cur_icd_3.physical_devices.back().properties, VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU, VK_API_VERSION_1_1,
3492 std::array<VkPhysicalDevice, max_phys_devs> physical_devices;
3493 ASSERT_EQ(VK_SUCCESS, inst->vkEnumeratePhysicalDevices(inst, &device_count, physical_devices.data()));
3660 driver0.physical_devices.emplace_back("physical_device_0");
3663 driver1.physical_devices.emplace_back("portability_physical_device_1");
3741 driver0.physical_devices.emplace_back("physical_device_0");
3744 driver1.physical_devices.emplace_back("portability_physical_device_1");
3869 driver.physical_devices.back().add_extension(fake_ext_name);
3975 env.get_test_icd(0).physical_devices.push_back({});
3976 env.get_test_icd(0).physical_devices.at(0).properties.deviceID = 1337;
3978 env.get_test_icd(1).physical_devices.push_back({});
3979 env.get_test_icd(1).physical_devices.at(0).properties.deviceID = 9999;
3983 auto physical_devices = inst.GetPhysDevs();
3984 ASSERT_EQ(1, physical_devices.size());
3988 inst->vkGetPhysicalDeviceProperties(physical_devices[0], &props);
3989 ASSERT_EQ(env.get_test_icd(0).physical_devices.at(0).properties.deviceID, props.deviceID);
3997 env.get_test_icd(0).physical_devices.push_back({});
3998 env.get_test_icd(0).physical_devices.at(0).properties.deviceID = 1337;
4000 env.get_test_icd(1).physical_devices.push_back({});
4001 env.get_test_icd(1).physical_devices.at(0).properties.deviceID = 9999;
4005 auto physical_devices = inst.GetPhysDevs();
4006 ASSERT_EQ(1, physical_devices.size());
4010 inst->vkGetPhysicalDeviceProperties(physical_devices[0], &props);
4011 ASSERT_EQ(env.get_test_icd(1).physical_devices.at(0).properties.deviceID, props.deviceID);
4043 env.get_test_icd(0).physical_devices.emplace_back("Device0");
4045 env.get_test_icd(1).physical_devices.emplace_back("Device1");
4222 driver.physical_devices.emplace_back(name);
4223 auto& pd0 = driver.physical_devices.back();
4291 env.get_test_icd(2).physical_devices.back().layered_driver_underlying_api = VK_LAYERED_DRIVER_UNDERLYING_API_D3D12_MSFT;
4346 env.get_test_icd(0).physical_devices.back().layered_driver_underlying_api = VK_LAYERED_DRIVER_UNDERLYING_API_D3D12_MSFT;