Check vkGetInstanceProcAddr works with NULL instance
authorRicardo Garcia <rgarcia@igalia.com>
Tue, 24 Mar 2020 16:31:31 +0000 (17:31 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 17 Apr 2020 09:11:31 +0000 (05:11 -0400)
commit2a934fc35e1ceb9e53144501dac7bbf3d21e2528
tree12df79618a08edcc9ef15c884269a3f921a31195
parent527bf26d80af40a54e17438e3e3802ef7a8a24f4
Check vkGetInstanceProcAddr works with NULL instance

This commit makes sure vkGetInstanceProcAddr can resolve itself when
used with a NULL instance, being a platform function.

In addition, vkEnumerateInstanceVersion is always checked, when present
in the corresponding API table, to work as a platform function returning
a function pointer when called with a NULL instance.

Affected tests:
dEQP-VK.api.version_check.entry_points

Components: Vulkan
VK-GL-CTS issue: 2278

Change-Id: Ia6e23b8aa2328646003ada8e4d5947656566ccaf
external/vulkancts/modules/vulkan/api/vktApiVersionCheck.cpp