From 31fab141df317848760ff00ae16fd691e4fd1c5f Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Thu, 30 Jun 2022 12:06:05 -0700 Subject: [PATCH] dzn: Support Vulkan loader interface v5 Reviewed-by: Boris Brezillon Part-of: --- src/microsoft/vulkan/dzn_device.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/microsoft/vulkan/dzn_device.c b/src/microsoft/vulkan/dzn_device.c index 33b6b595a3a..303a472298c 100644 --- a/src/microsoft/vulkan/dzn_device.c +++ b/src/microsoft/vulkan/dzn_device.c @@ -1357,8 +1357,14 @@ vk_icdNegotiateLoaderICDInterfaceVersion(uint32_t *pSupportedVersion) * * - Loader interface v4 differs from v3 in: * - The ICD must implement vk_icdGetPhysicalDeviceProcAddr(). + * + * - Loader interface v5 differs from v4 in: + * - The ICD must support Vulkan API version 1.1 and must not return + * VK_ERROR_INCOMPATIBLE_DRIVER from vkCreateInstance() unless a + * Vulkan Loader with interface v4 or smaller is being used and the + * application provides an API version that is greater than 1.0. */ - *pSupportedVersion = MIN2(*pSupportedVersion, 4u); + *pSupportedVersion = MIN2(*pSupportedVersion, 5u); return VK_SUCCESS; }