aboutsummaryrefslogtreecommitdiff
path: root/scripts/parameter_validation_generator.py
diff options
context:
space:
mode:
authorMark Lobodzinski <mark@lunarg.com>2017-08-23 15:23:23 -0600
committerMark Lobodzinski <mark@lunarg.com>2017-08-24 11:01:10 -0600
commitbb439c2da34f4fb0634729dc74bf95e8e737ac0c (patch)
tree23d77d7a16218aed4d69c7de10ca9f50a4709502 /scripts/parameter_validation_generator.py
parent5b1f1371d9e8a2a6a2cb7d0b5249bdab10ef4dd9 (diff)
downloadusermoji-bb439c2da34f4fb0634729dc74bf95e8e737ac0c.tar.xz
scripts: Enable instance extension checks in PV
Parameter_validation's hammer for excluding some pdev-ish checks was too large. This adds extension dependency checks for about 50 more APIs. Change-Id: Icb44cdb36c8c0384781e04e207ceb18d9f67ff0c
Diffstat (limited to 'scripts/parameter_validation_generator.py')
-rw-r--r--scripts/parameter_validation_generator.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/parameter_validation_generator.py b/scripts/parameter_validation_generator.py
index af54b8de..a7d973ff 100644
--- a/scripts/parameter_validation_generator.py
+++ b/scripts/parameter_validation_generator.py
@@ -1142,10 +1142,8 @@ class ParameterValidationOutputGenerator(OutputGenerator):
# Skip first parameter if it is a dispatch handle (everything except vkCreateInstance)
startIndex = 0 if command.name == 'vkCreateInstance' else 1
lines, unused = self.genFuncBody(command.name, command.params[startIndex:], '', '', None)
- # Cannot validate extension dependencies for device extension APIs a physical device as their dispatchable object
- if self.required_extensions and self.extension_type == 'device' and command.params[0].type != 'VkPhysicalDevice':
- # The actual extension names are not all available yet, so we'll tag these now and replace them just before
- # writing the validation routines out to a file
+ # Cannot validate extension dependencies for device extension APIs having a physical device as their dispatchable object
+ if self.required_extensions and (self.extension_type != 'device' or command.params[0].type != 'VkPhysicalDevice'):
ext_test = ''
for ext in self.required_extensions:
ext_name_define = ''