Use VK_KHR_maintenance9 (drop queue transfer)

This commit is contained in:
Patrick Nicolas
2026-04-04 13:40:47 +02:00
parent 2ede05dafb
commit 6c6519fab5
4 changed files with 36 additions and 4 deletions
+10
View File
@@ -249,6 +249,9 @@ wivrn::vk_bundle::vk_bundle() :
#endif
#ifdef VK_KHR_video_encode_intra_refresh
VK_KHR_VIDEO_ENCODE_INTRA_REFRESH_EXTENSION_NAME,
#endif
#ifdef VK_KHR_maintenance9
VK_KHR_MAINTENANCE_9_EXTENSION_NAME,
#endif
};
for (auto & ext: physical_device.enumerateDeviceExtensionProperties())
@@ -283,6 +286,13 @@ wivrn::vk_bundle::vk_bundle() :
#endif
}
#endif
#ifdef VK_KHR_maintenance9
if (has_device_ext(VK_KHR_MAINTENANCE_9_EXTENSION_NAME))
{
std::get<vk::PhysicalDeviceMaintenance9FeaturesKHR>(feat).maintenance9 =
std::get<vk::PhysicalDeviceMaintenance9FeaturesKHR>(physical_device.getFeatures2<vk::PhysicalDeviceFeatures2, vk::PhysicalDeviceMaintenance9FeaturesKHR>()).maintenance9;
}
#endif
// Enable features
auto [phys_feat, phys_feat12, phys_feat13] = physical_device.getFeatures2<vk::PhysicalDeviceFeatures2, vk::PhysicalDeviceVulkan12Features, vk::PhysicalDeviceVulkan13Features>();