mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
vulkan: utils: handle hexadecimal values in registry
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
0eaf069679
commit
c05c8d65ba
1 changed files with 1 additions and 1 deletions
|
|
@ -172,7 +172,7 @@ class VkEnum(object):
|
|||
def add_value_from_xml(self, elem, extension=None):
|
||||
if 'value' in elem.attrib:
|
||||
self.add_value(elem.attrib['name'],
|
||||
value=int(elem.attrib['value']))
|
||||
value=int(elem.attrib['value'], base=0))
|
||||
elif 'alias' in elem.attrib:
|
||||
self.add_value(elem.attrib['name'],
|
||||
value=self.name_to_value[elem.attrib['alias']])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue