mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-24 02:50:39 +02:00
vk/util: trivial cleanups in vk_icd_gen.py
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27779>
This commit is contained in:
parent
bc38b68ab8
commit
3f2790adcd
1 changed files with 3 additions and 2 deletions
|
|
@ -22,10 +22,10 @@
|
|||
|
||||
import argparse
|
||||
import json
|
||||
import os.path
|
||||
import re
|
||||
import xml.etree.ElementTree as et
|
||||
|
||||
|
||||
def get_xml_patch_version(xml_file):
|
||||
xml = et.parse(xml_file)
|
||||
for d in xml.findall('.types/type'):
|
||||
|
|
@ -34,10 +34,11 @@ def get_xml_patch_version(xml_file):
|
|||
|
||||
name = d.find('.name')
|
||||
if name.text != 'VK_HEADER_VERSION':
|
||||
continue;
|
||||
continue
|
||||
|
||||
return name.tail.strip()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--api-version', required=True,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue