misc: Loader and Layers move device chain activation to CreateDevice
diff --git a/vk-generate.py b/vk-generate.py
index 28e4507..ca3a6d3 100755
--- a/vk-generate.py
+++ b/vk-generate.py
@@ -115,6 +115,8 @@
func = []
if type == "device":
for proto in self.protos:
+ if proto.name == "CreateInstance" or proto.name == "GetGlobalExtensionInfo" or proto.name == "GetDisplayInfoWSI" or proto.params[0].ty == "VkInstance" or proto.params[0].ty == "VkPhysicalDevice":
+ continue
stmts.append("table->%s = (PFN_vk%s) gpa(gpu, \"vk%s\");" %
(proto.name, proto.name, proto.name))
func.append("static inline void %s_initialize_dispatch_table(VkLayerDispatchTable *table,"
@@ -125,7 +127,7 @@
% (" " * len(self.prefix)))
else:
for proto in self.protos:
- if proto.name != "CreateInstance" and proto.name != "GetGlobalExtensionInfo" and proto.params[0].ty != "VkInstance" and proto.params[0].ty != "VkPhysicalDevice":
+ if proto.name != "CreateInstance" and proto.name != "GetGlobalExtensionInfo" and proto.name != "GetDisplayInfoWSI" and proto.params[0].ty != "VkInstance" and proto.params[0].ty != "VkPhysicalDevice":
continue
stmts.append("table->%s = (PFN_vk%s) gpa(instance, \"vk%s\");" %
(proto.name, proto.name, proto.name))