scripts:Skip some extensions in mock ICD
authorTobin Ehlis <tobine@google.com>
Thu, 26 Oct 2017 20:47:51 +0000 (14:47 -0600)
committerTobin Ehlis <tobine@google.com>
Mon, 30 Oct 2017 17:01:05 +0000 (11:01 -0600)
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.

scripts/mock_icd_generator.py

index e351d70..f959788 100644 (file)
@@ -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']))