aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMark Lobodzinski <mark@lunarg.com>2019-07-19 15:12:10 -0600
committerMark Lobodzinski <mark@lunarg.com>2019-08-08 17:16:02 -0600
commit72ae30964d77e637d2e881b5365a058048ae5f70 (patch)
tree00cb7dac8e6594032c3a84e6eb910ea84c45253d /scripts
parentdb8affe556111c2aa1817b770d2b5db263542b4b (diff)
downloadvulkan-validation-layers-72ae30964d77e637d2e881b5365a058048ae5f70.tar.gz
scripts: Remove dispatch free-pnext-chain function
Dispatch now uses the safe_struct version for the same purpose. Change-Id: Id314467c0a65d32199d01691515719efc4efe7ae
Diffstat (limited to 'scripts')
-rw-r--r--scripts/layer_chassis_dispatch_generator.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/scripts/layer_chassis_dispatch_generator.py b/scripts/layer_chassis_dispatch_generator.py
index 9bdc69a76..b49f77e0b 100644
--- a/scripts/layer_chassis_dispatch_generator.py
+++ b/scripts/layer_chassis_dispatch_generator.py
@@ -1370,28 +1370,6 @@ VkResult DispatchSetDebugUtilsObjectNameEXT(VkDevice device, const VkDebugUtilsO
pnext_proc += ' // Process the next structure in the chain\n'
pnext_proc += ' cur_pnext = header->pNext;\n'
pnext_proc += ' }\n'
- pnext_proc += '}\n\n'
- pnext_proc += '// Free a pNext extension chain\n'
- pnext_proc += 'void FreeUnwrappedExtensionStructs(void *head) {\n'
- pnext_proc += ' VkBaseOutStructure *curr_ptr = reinterpret_cast<VkBaseOutStructure *>(head);\n'
- pnext_proc += ' while (curr_ptr) {\n'
- pnext_proc += ' VkBaseOutStructure *header = curr_ptr;\n'
- pnext_proc += ' curr_ptr = reinterpret_cast<VkBaseOutStructure *>(header->pNext);\n\n'
- pnext_proc += ' switch (header->sType) {\n';
- for item in self.pnext_extension_structs:
- struct_info = self.struct_member_dict[item]
- if struct_info[0].feature_protect is not None:
- pnext_proc += '#ifdef %s \n' % struct_info[0].feature_protect
- pnext_proc += ' case %s:\n' % self.structTypes[item].value
- pnext_proc += ' delete reinterpret_cast<safe_%s *>(header);\n' % item
- pnext_proc += ' break;\n'
- if struct_info[0].feature_protect is not None:
- pnext_proc += '#endif // %s \n' % struct_info[0].feature_protect
- pnext_proc += '\n'
- pnext_proc += ' default:\n'
- pnext_proc += ' assert(0);\n'
- pnext_proc += ' }\n'
- pnext_proc += ' }\n'
pnext_proc += '}\n'
return pnext_proc