zink. Fixing vkGetPhysicalDeviceProperties2 and vkGetPhysicalDeviceFeatures2 for...
authorDuncan Hopkins <duncan.hopkins@foundry.com>
Mon, 7 Dec 2020 08:25:13 +0000 (08:25 +0000)
committerMarge Bot <eric+marge@anholt.net>
Mon, 7 Dec 2020 11:06:17 +0000 (11:06 +0000)
commit5bcefcc91abe796368adc2f9f23720594c9eef82
treeab0c7734981d3bdca2252b679e289cb94c000d86
parentb24b3026cc0541c59613463a124b16954b2a7cd8
zink. Fixing vkGetPhysicalDeviceProperties2 and vkGetPhysicalDeviceFeatures2 for Vk 1.1 and VK_KHR_get_physical_device_properties2.

MoltenVK does not export the vkGetPhysical*2() functionns, even in Vulkan 1.2.154.0 where the instance version moves from 1.0 to 1.1.
If the extension is present and used the KHR versions of the functions can be used.
From the spec the vkGetPhysicalDevice*2() functions should be avaiable from Vk 1.1 loaders and devices. Which implies MoltenVK might be misbehaving.
This change allows the extension to be used, if present, before the Vk 1.1 version check.

Fixes: 752f6d80 ("zink: setup version dependent VkPhysicalDeviceVulkan*Features and VkPhysicalDeviceVulkan*Properties.")
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7960>
src/gallium/drivers/zink/zink_device_info.py
src/gallium/drivers/zink/zink_screen.c