scripts: Add support for uint32_t return types
Change-Id: I98fbaed18ed3554f63a273bcd20aa9b7f2ccb536
diff --git a/scripts/dispatch_table_helper_generator.py b/scripts/dispatch_table_helper_generator.py
index c64dda1..488d8f5 100644
--- a/scripts/dispatch_table_helper_generator.py
+++ b/scripts/dispatch_table_helper_generator.py
@@ -185,6 +185,8 @@
return_type = 'return VK_SUCCESS;'
elif decl.startswith('typedef VkDeviceAddress'):
return_type = 'return 0;'
+ elif decl.startswith('typedef uint32_t'):
+ return_type = 'return 0;'
pre_decl, decl = decl.split('*PFN_vk')
pre_decl = pre_decl.replace('typedef ', '')
pre_decl = pre_decl.split(' (')[0]
diff --git a/scripts/layer_chassis_generator.py b/scripts/layer_chassis_generator.py
index 8bf1b10..67cde89 100644
--- a/scripts/layer_chassis_generator.py
+++ b/scripts/layer_chassis_generator.py
@@ -1057,6 +1057,7 @@
'VkDeviceAddress': 'return 0;',
'VkResult': 'return VK_ERROR_VALIDATION_FAILED_EXT;',
'void': 'return;',
+ 'uint32_t': 'return 0;'
}
resulttype = cmdinfo.elem.find('proto/type')
assignresult = ''