Lines Matching refs:driver
259 ASSERT_EQ(extension_count, 4U); // return debug report & debug utils & portability enumeration & direct driver loading
270 ASSERT_EQ(extension_count, 4U); // return debug report & debug utils & portability enumeration & direct driver loading
338 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)).add_physical_device("physical_device_0");
342 driver.physical_devices.front().extensions.push_back(ext);
365 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)).add_physical_device("physical_device_0");
369 driver.physical_devices.front().extensions.push_back(ext);
504 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)).add_physical_device({});
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());
535 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)).add_physical_device({});
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());
620 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)).add_physical_device({});
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;
655 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)).add_physical_device({});
672 driver.physical_devices.front().extensions = exts;
683 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)).set_min_icd_interface_version(5);
685 driver.add_physical_device("physical_device_0");
686 driver.add_physical_device("physical_device_1");
687 driver.add_physical_device("physical_device_2");
688 driver.add_physical_device("physical_device_3");
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());
702 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2))
708 driver.add_physical_device(std::string("physical_device_") + std::to_string(i));
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());
728 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2))
734 driver.add_physical_device(std::string("physical_device_") + std::to_string(i));
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());
764 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2))
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());
822 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2, VK_API_VERSION_1_1)).set_min_icd_interface_version(5);
826 driver.physical_devices.clear();
844 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)).set_min_icd_interface_version(5);
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) {
870 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)).set_min_icd_interface_version(5);
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) {
906 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)).set_min_icd_interface_version(5);
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) {
942 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)).set_min_icd_interface_version(5);
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());
981 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)).set_min_icd_interface_version(5);
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());
1037 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)).set_min_icd_interface_version(5);
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());
1291 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2));
1294 driver.physical_devices.emplace_back("physical_device_0");
1308 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2));
1311 driver.physical_devices.emplace_back("physical_device_0");
1586 "this driver"));
1611 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2, VK_API_VERSION_1_1))
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]);
1638 uint32_t group_count = static_cast<uint32_t>(driver.physical_device_groups.size());
1691 driver.add_instance_extension({VK_KHR_DEVICE_GROUP_CREATION_EXTENSION_NAME});
1705 uint32_t group_count = static_cast<uint32_t>(driver.physical_device_groups.size());
1745 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2, VK_API_VERSION_1_1))
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]);
1772 uint32_t group_count = static_cast<uint32_t>(driver.physical_device_groups.size());
1808 driver.add_instance_extension({VK_KHR_DEVICE_GROUP_CREATION_EXTENSION_NAME});
1822 uint32_t group_count = static_cast<uint32_t>(driver.physical_device_groups.size());
1862 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2, VK_API_VERSION_1_1))
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]);
1883 uint32_t group_count = static_cast<uint32_t>(driver.physical_device_groups.size());
1924 driver.add_instance_extension({VK_KHR_DEVICE_GROUP_CREATION_EXTENSION_NAME});
1933 uint32_t group_count = static_cast<uint32_t>(driver.physical_device_groups.size());
1980 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2, VK_API_VERSION_1_1))
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]);
1995 driver.physical_device_groups.back()
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]);
2013 core_group_count = static_cast<uint32_t>(driver.physical_device_groups.size());
2025 ext_group_count = static_cast<uint32_t>(driver.physical_device_groups.size());
2070 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2, VK_API_VERSION_1_1))
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]);
2083 driver.physical_device_groups.back()
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]);
2165 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2, VK_API_VERSION_1_1))
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]);
2178 driver.physical_device_groups.back()
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]);
2206 driver.physical_device_groups.erase(driver.physical_device_groups.begin() + 2);
2252 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2, VK_API_VERSION_1_1))
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]);
2265 driver.physical_device_groups.back()
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]);
2338 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2, VK_API_VERSION_1_1))
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]);
2351 driver.physical_device_groups.back()
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]);
2382 driver.physical_device_groups[1].physical_device_handles.erase(
2383 driver.physical_device_groups[1].physical_device_handles.begin() + 1);
2435 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2, VK_API_VERSION_1_1))
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]);
2448 driver.physical_device_groups.back()
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]);
2493 driver.physical_device_groups[1].physical_device_handles.erase(
2494 driver.physical_device_groups[1].physical_device_handles.begin());
2509 driver.physical_device_groups.erase(driver.physical_device_groups.begin());
2524 driver.physical_device_groups.back()
2525 .use_physical_device(driver.physical_devices[7])
2526 .use_physical_device(driver.physical_devices[8]);
2663 { // No support in driver
2679 { // extension is supported in driver
3775 // check that enumerating instance extensions work with a portability driver present
3819 // manifests to be skipped. Stale registry entries happen when a registry is written on layer/driver installation but not cleaned up
3863 EnvVarWrapper ld_library_path("LD_LIBRARY_PATH", env.get_folder(ManifestLocation::driver).location().str());
3866 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2).set_library_path_type(LibraryPathType::default_search_paths))
3869 driver.physical_devices.back().add_extension(fake_ext_name);
3939 fs::path invalid_driver_path = env.get_folder(ManifestLocation::driver).location() / "nothing_here.json";
3955 fs::path symlink_path = env.get_folder(ManifestLocation::driver).location() / symlink_name;
3959 env.get_folder(ManifestLocation::driver).add_existing_file(symlink_name);
3992 // Add two drivers, one to the bundle and one using the driver env-var
4184 fs::path new_path = env.get_folder(ManifestLocation::driver).write_manifest(file_name, invalid_jsons[i]);
4217 auto& driver = env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_6).set_discovery_type(ManifestDiscoveryType::null_dir));
4218 driver.set_min_icd_interface_version(5);
4219 driver.set_max_icd_interface_version(6);
4220 driver.setup_WSI();
4221 driver.set_icd_api_version(VK_API_VERSION_1_1);
4222 driver.physical_devices.emplace_back(name);
4223 auto& pd0 = driver.physical_devices.back();
4231 driver.set_adapterLUID(desc.AdapterLuid);
4289 // Set the first physical device that is enumerated to be a 'layered' driver so it should be swapped with the first physical
4310 // Because the 'last' driver has the layered_driver set to D3D12, the order is modified
4365 // Make sure that reordering doesn't occur if the MSFT layered driver appears second