~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/vulkan/util/vk_entrypoints.py

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
    def call_params(self):
99
99
        return self.alias.call_params()
100
100
 
101
 
def get_entrypoints(doc, api):
 
101
def get_entrypoints(doc, api, beta):
102
102
    """Extract the entry points from the registry."""
103
103
    entrypoints = OrderedDict()
104
104
 
105
 
    required = get_all_required(doc, 'command', api)
 
105
    required = get_all_required(doc, 'command', api, beta)
106
106
 
107
107
    for command in doc.findall('./commands/command'):
108
108
        if not filter_api(command, api):
137
137
 
138
138
    return entrypoints.values()
139
139
 
140
 
def get_entrypoints_from_xml(xml_files, api='vulkan'):
 
140
def get_entrypoints_from_xml(xml_files, beta, api='vulkan'):
141
141
    entrypoints = []
142
142
 
143
143
    for filename in xml_files:
144
144
        doc = et.parse(filename)
145
 
        entrypoints += get_entrypoints(doc, api)
 
145
        entrypoints += get_entrypoints(doc, api, beta)
146
146
 
147
147
    return entrypoints