Module: Mesa Branch: master Commit: c05c8d65ba38132c6bc8ead70ff8f0b45dd4388b URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c05c8d65ba38132c6bc8ead70ff8f0b45dd4388b
Author: Lionel Landwerlin <[email protected]> Date: Fri Jul 6 11:48:23 2018 +0100 vulkan: utils: handle hexadecimal values in registry Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> --- src/vulkan/util/gen_enum_to_str.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/util/gen_enum_to_str.py b/src/vulkan/util/gen_enum_to_str.py index bf883d5cb8..fb9ecd65c6 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']]) _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
