From: Charles Giessen Date: Fri, 14 Jan 2022 18:13:30 +0000 (-0600) Subject: freedreno, tu: Update LoaderICDInterfaceVersion to v5 X-Git-Tag: upstream/22.3.5~13744 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e0604279d36ffdf1ea558c40a74b4e69c698545;p=platform%2Fupstream%2Fmesa.git freedreno, tu: Update LoaderICDInterfaceVersion to v5 With the proper version checking in the common vulkan instance code (commit 88b9b68) it is now possible to bring the reported interface version up to v5. Reviewed-by: Danylo Piliaiev Part-of: --- diff --git a/src/freedreno/vulkan/tu_device.c b/src/freedreno/vulkan/tu_device.c index 9f20266..0653ff8 100644 --- a/src/freedreno/vulkan/tu_device.c +++ b/src/freedreno/vulkan/tu_device.c @@ -2562,8 +2562,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; }