summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-10-11 18:09:32 -0700
committerJason Ekstrand <[email protected]>2018-03-07 12:13:47 -0800
commitcbab2d1da5edfe9df27a010adf8b1aa9dbee473b (patch)
treecd7399bdf1f2b9e90845638154e7467cb18f4ced /src/intel
parent605fd7c0daa34e76f0b9d10ee77d2c06ac9fe06d (diff)
anv: Implement vkEnumerateInstanceVersion
Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/vulkan/anv_extensions_gen.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_extensions_gen.py b/src/intel/vulkan/anv_extensions_gen.py
index 1796437dc7c..ba5424d3d2f 100644
--- a/src/intel/vulkan/anv_extensions_gen.py
+++ b/src/intel/vulkan/anv_extensions_gen.py
@@ -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}},