From bb439c2da34f4fb0634729dc74bf95e8e737ac0c Mon Sep 17 00:00:00 2001 From: Mark Lobodzinski Date: Wed, 23 Aug 2017 15:23:23 -0600 Subject: 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 --- scripts/parameter_validation_generator.py | 6 ++---- 1 file 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 = '' -- cgit v1.2.3