nvk: Implement EnumerateInstanceVersion
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Tue, 31 Jan 2023 02:11:46 +0000 (20:11 -0600)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:31:52 +0000 (21:31 +0000)
This is required for future Vulkan versions.  The common code also calls
it for validating Vulkan versions.  May as well implement it now.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>

src/nouveau/vulkan/nvk_instance.c

index a8520ed..835bc76 100644 (file)
@@ -2,6 +2,13 @@
 
 #include "nvk_physical_device.h"
 
+VKAPI_ATTR VkResult VKAPI_CALL
+nvk_EnumerateInstanceVersion(uint32_t *pApiVersion)
+{
+   *pApiVersion = VK_MAKE_VERSION(1, 0, VK_HEADER_VERSION);
+   return VK_SUCCESS;
+}
+
 static const struct vk_instance_extension_table instance_extensions = {
    .KHR_get_physical_device_properties2 = true,
    .EXT_debug_report = true,