diff options
| author | Tobin Ehlis <tobine@google.com> | 2017-10-26 14:47:51 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2017-10-30 11:01:05 -0600 |
| commit | ce653bcdf04b8b6f33b8d6c5603f0bba6706bb88 (patch) | |
| tree | 8d2cc65cfa0eea4dd49c912c5a7324904bb34074 /scripts | |
| parent | 9475379a942a3c477c1b27c62e073e9c643ced36 (diff) | |
| download | usermoji-ce653bcdf04b8b6f33b8d6c5603f0bba6706bb88.tar.xz | |
scripts:Skip some extensions in mock ICD
Mock ICD doesn't need to implement validation cache extension. Add
simple list of excluded exceptions so we can kill any cases that we
don't want in mock ICD. Initially only excludes validation cache.
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/mock_icd_generator.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/mock_icd_generator.py b/scripts/mock_icd_generator.py index e351d70e..f9597881 100644 --- a/scripts/mock_icd_generator.py +++ b/scripts/mock_icd_generator.py @@ -832,9 +832,13 @@ class MockICDOutputGenerator(OutputGenerator): # } VkExtensionProperties; device_exts = [] instance_exts = [] + # Ignore extensions that ICDs should not implement + ignore_exts = ['VK_EXT_validation_cache'] for ext in self.registry.tree.findall("extensions/extension"): if '0' != ext[0][0].attrib['value']: # Only include implemented extensions - if (ext.attrib.get('type') and 'instance' == ext.attrib['type']): + if (ext.attrib['name'] in ignore_exts): + pass + elif (ext.attrib.get('type') and 'instance' == ext.attrib['type']): instance_exts.append(' {"%s", %s},' % (ext.attrib['name'], ext[0][0].attrib['value'])) else: device_exts.append(' {"%s", %s},' % (ext.attrib['name'], ext[0][0].attrib['value'])) |
