layers: Fix missing PV WSI registration
Change-Id: I1c924977a420bc7a417710b82f0a42f4ae5dd4c3
diff --git a/layers/parameter_validation.cpp b/layers/parameter_validation.cpp
index e19e07c..2b12366 100644
--- a/layers/parameter_validation.cpp
+++ b/layers/parameter_validation.cpp
@@ -1298,6 +1298,8 @@
return skip_call;
}
+static void CheckInstanceRegisterExtensions(const VkInstanceCreateInfo *pCreateInfo, VkInstance instance);
+
VKAPI_ATTR VkResult VKAPI_CALL CreateInstance(const VkInstanceCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator,
VkInstance *pInstance) {
VkResult result = VK_ERROR_VALIDATION_FAILED_EXT;
@@ -1344,6 +1346,7 @@
}
init_parameter_validation(my_instance_data, pAllocator);
+ CheckInstanceRegisterExtensions(pCreateInfo, *pInstance);
// Ordinarily we'd check these before calling down the chain, but none of the layer
// support is in place until now, if we survive we can report the issue now.