[Mesa-dev] [PATCH] vulkan: utils: handle hexadecimal values in registry
Jason Ekstrand
jason at jlekstrand.net
Fri Jul 6 21:07:44 UTC 2018
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
On Fri, Jul 6, 2018 at 2:06 PM Lionel Landwerlin <
lionel.g.landwerlin at intel.com> wrote:
> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
> ---
> 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 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']])
> --
> 2.18.0
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180706/88260d49/attachment.html>
More information about the mesa-dev
mailing list