Mathijs de Bruin 2024-02-03 18:00:11 +00:00 committed by Philip Taron
parent 5dde540897
commit 42f664a382

View File

@ -1109,8 +1109,10 @@ static void ggml_vk_instance_init() {
#ifdef GGML_VULKAN_VALIDATE #ifdef GGML_VULKAN_VALIDATE
"VK_EXT_validation_features", "VK_EXT_validation_features",
#endif #endif
"VK_KHR_portability_enumeration",
}; };
vk::InstanceCreateInfo instance_create_info(vk::InstanceCreateFlags(), &app_info, layers, extensions);
vk::InstanceCreateInfo instance_create_info(vk::InstanceCreateFlags(vk::InstanceCreateFlagBits::eEnumeratePortabilityKHR), &app_info, layers, extensions);
#ifdef GGML_VULKAN_VALIDATE #ifdef GGML_VULKAN_VALIDATE
const std::vector<vk::ValidationFeatureEnableEXT> features_enable = { vk::ValidationFeatureEnableEXT::eBestPractices }; const std::vector<vk::ValidationFeatureEnableEXT> features_enable = { vk::ValidationFeatureEnableEXT::eBestPractices };
vk::ValidationFeaturesEXT validation_features = { vk::ValidationFeaturesEXT validation_features = {