summaryrefslogtreecommitdiffstats
path: root/src/vulkan
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2018-07-06 11:48:23 +0100
committerLionel Landwerlin <[email protected]>2018-07-06 22:12:00 +0100
commitc05c8d65ba38132c6bc8ead70ff8f0b45dd4388b (patch)
treea8ae15b7867b81739afdeb161ccd209c851a7904 /src/vulkan
parent0eaf069679ccf86de6739d5eaa439db075f02903 (diff)
vulkan: utils: handle hexadecimal values in registry
Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/vulkan')
-rw-r--r--src/vulkan/util/gen_enum_to_str.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vulkan/util/gen_enum_to_str.py b/src/vulkan/util/gen_enum_to_str.py
index bf883d5cb8f..fb9ecd65c6d 100644
--- a/src/vulkan/util/gen_enum_to_str.py
+++ b/src/vulkan/util/gen_enum_to_str.py
@@ -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']])