From: Jason Ekstrand Date: Wed, 17 Jan 2018 02:08:33 +0000 (-0800) Subject: anv/extensions: Fix VkVersion::c_vk_version for patch == None X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cb0d1ba15692648bfa55e56a8f4ba1349a35a829;p=mesa.git anv/extensions: Fix VkVersion::c_vk_version for patch == None Reviewed-by: Samuel Iglesias Gonsálvez --- diff --git a/src/intel/vulkan/anv_extensions.py b/src/intel/vulkan/anv_extensions.py index ae30ec99dc7..581921e62a1 100644 --- a/src/intel/vulkan/anv_extensions.py +++ b/src/intel/vulkan/anv_extensions.py @@ -112,7 +112,8 @@ class VkVersion: return '.'.join(ver_list) def c_vk_version(self): - ver_list = [str(self.major), str(self.minor), str(self.patch)] + patch = self.patch if self.patch is not None else 0 + ver_list = [str(self.major), str(self.minor), str(patch)] return 'VK_MAKE_VERSION(' + ', '.join(ver_list) + ')' def __int_ver(self):