Module: Mesa Branch: main Commit: 852197537ec01d4b18d8c4e83f332fc63ab44dc6 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=852197537ec01d4b18d8c4e83f332fc63ab44dc6
Author: Samuel Pitoiset <[email protected]> Date: Thu Jan 13 07:55:57 2022 +0100 radv: add a no-op version of vkGetPhysicalDeviceToolPropertiesEXT() It seems the vulkan common runtime code exposes VK_EXT_tooling but doesn't (yet) have a fallback if the backend doesn't enable this extension. Implement it as a no-op for a temporary workaround. This fixes crashes with dEQP-VK.api.tooling_info.*. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14707> --- src/amd/vulkan/radv_device.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 39de5a27189..90429a49d3e 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -6475,3 +6475,14 @@ radv_GetPhysicalDeviceFragmentShadingRatesKHR( return vk_outarray_status(&out); } + +/* VK_EXT_tooling_info */ +VKAPI_ATTR VkResult VKAPI_CALL +radv_GetPhysicalDeviceToolPropertiesEXT( + VkPhysicalDevice physicalDevice, + uint32_t *pToolCount, + VkPhysicalDeviceToolPropertiesEXT *pToolProperties) +{ + *pToolCount = 0; + return VK_SUCCESS; +}
