anv: drop unused parameter
authorEric Engestrom <eric.engestrom@intel.com>
Wed, 27 Feb 2019 10:40:52 +0000 (10:40 +0000)
committerEric Engestrom <eric@engestrom.ch>
Fri, 1 Mar 2019 11:20:28 +0000 (11:20 +0000)
I'm guessing a previous version of this script used an index-based map
of entrypoints, but that's not the case anymore.

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_entrypoints_gen.py

index 6f6053915d8a70c7eec8f1d6e08f4566749fc355..1c38a19170c58f7cdae64e42442e69f9faac2bd5 100644 (file)
@@ -526,7 +526,7 @@ class EntrypointAlias(EntrypointBase):
     def prefixed_name(self, prefix):
         return self.alias.prefixed_name(prefix)
 
-def get_entrypoints(doc, entrypoints_to_defines, start_index):
+def get_entrypoints(doc, entrypoints_to_defines):
     """Extract the entry points from the registry."""
     entrypoints = OrderedDict()
 
@@ -611,8 +611,7 @@ def main():
 
     for filename in args.xml_files:
         doc = et.parse(filename)
-        entrypoints += get_entrypoints(doc, get_entrypoints_defines(doc),
-                                       start_index=len(entrypoints))
+        entrypoints += get_entrypoints(doc, get_entrypoints_defines(doc))
 
     # Manually add CreateDmaBufImageINTEL for which we don't have an extension
     # defined.