From 6ea7a61d7ab065a7a51c7030d405d67ca8b14167 Mon Sep 17 00:00:00 2001 From: Charles Giessen Date: Fri, 14 Jan 2022 12:14:39 -0600 Subject: [PATCH] v3dv: Update LoaderICDInterfaceVersion to v5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: Alejandro PiƱeiro Part-of: --- src/broadcom/vulkan/v3dv_device.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/broadcom/vulkan/v3dv_device.c b/src/broadcom/vulkan/v3dv_device.c index 4d07ffe904c..44882a9b413 100644 --- a/src/broadcom/vulkan/v3dv_device.c +++ b/src/broadcom/vulkan/v3dv_device.c @@ -2693,7 +2693,13 @@ 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; }