radv/extensions: fix c_vk_version for patch == None
authorMauro Rossi <issor.oruam@gmail.com>
Fri, 23 Feb 2018 22:33:37 +0000 (23:33 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 23 Feb 2018 23:31:31 +0000 (00:31 +0100)
commit8eed9421367d3a5576cb4b924d5004a1f976a418
tree9d70aad057b01366cba8a6c61e22acf53c830026
parentb4b4ada7616dec49e9386670e455553d277e5f85
radv/extensions: fix c_vk_version for patch == None

Similar to cb0d1ba156 ("anv/extensions: Fix VkVersion::c_vk_version for patch == None")
fixes the following building errors:

out/target/product/x86_64/obj_x86/STATIC_LIBRARIES/libmesa_radv_common_intermediates/radv_entrypoints.c:1161:48:
error: use of undeclared identifier 'None'; did you mean 'long'?
      return instance && VK_MAKE_VERSION(1, 0, None) <= core_version;
                                               ^~~~
                                               long
external/mesa/include/vulkan/vulkan.h:34:43: note: expanded from macro 'VK_MAKE_VERSION'
    (((major) << 22) | ((minor) << 12) | (patch))
                                          ^
...
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

Fixes: e72ad05c1d ("radv: Return NULL for entrypoints when not supported.")
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_extensions.py