aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Lobodzinski <mark@lunarg.com>2017-01-04 09:27:39 -0700
committerMark Lobodzinski <mark@lunarg.com>2017-01-04 09:29:48 -0700
commitc2b6dd172050a67aa58e1bfd2c71d3054cfa97bb (patch)
treebb0c9c4fa50f5600c7f95a1b2a4648c04b751d3b
parentd3e18edbfe28f2e06147222d0a9d4f09fceaacea (diff)
downloadusermoji-c2b6dd172050a67aa58e1bfd2c71d3054cfa97bb.tar.xz
scripts: Fix dynamic array calc in vk_helper.py
VkSubmitInfo->pWaitDstStageMask should be treated as a dynamic array with a count of VkSubmitInfo->waitSemaphoreCount. Change-Id: I42da296eeb849f5baabc12d011c938f0f322274a
-rwxr-xr-xscripts/vk_helper.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/vk_helper.py b/scripts/vk_helper.py
index 3d5b1213..9407ee70 100755
--- a/scripts/vk_helper.py
+++ b/scripts/vk_helper.py
@@ -266,18 +266,19 @@ class HeaderFileParser:
# 3a. Name of dynam array must end in 's' char OR
# 3b. Name of count var minus 'count' must be contained in name of dynamic array
def _is_dynamic_array(self, full_type, name):
- exceptions = ['pEnabledFeatures', 'pWaitDstStageMask', 'pSampleMask']
- if name in exceptions:
+ negative_exceptions = ['pEnabledFeatures', 'pSampleMask']
+ positive_exceptions = ['pWaitDstStageMask']
+ if name in negative_exceptions:
return False
+ if name in positive_exceptions:
+ return True
if '' != self.last_struct_count_name:
if 'const' in full_type and '*' in full_type:
if name.endswith('s') or self.last_struct_count_name.lower().replace('count', '') in name.lower():
return True
-
# VkWriteDescriptorSet
if self.last_struct_count_name == "descriptorCount":
return True
-
return False
# populate struct dicts based on struct lines