anv: Implement vkEnumerateInstanceVersion
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 12 Oct 2017 01:09:32 +0000 (18:09 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 7 Mar 2018 20:13:47 +0000 (12:13 -0800)
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/intel/vulkan/anv_extensions_gen.py

index 1796437dc7ceb5d8f2e329eef5a036d8c2f1e1b8..ba5424d3d2f5cf0dea862a447337f9927d5ba7ec 100644 (file)
@@ -134,6 +134,13 @@ _TEMPLATE_C = Template(COPYRIGHT + """
                          VK_USE_PLATFORM_XCB_KHR || \\
                          VK_USE_PLATFORM_XLIB_KHR)
 
+VkResult anv_EnumerateInstanceVersion(
+    uint32_t*                                   pApiVersion)
+{
+    *pApiVersion = ${MAX_API_VERSION.c_vk_version()};
+    return VK_SUCCESS;
+}
+
 const VkExtensionProperties anv_instance_extensions[ANV_INSTANCE_EXTENSION_COUNT] = {
 %for ext in instance_extensions:
    {"${ext.name}", ${ext.ext_version}},