Commit Graph

10 Commits

Author SHA1 Message Date
andrew0229 3f7fe7b7b4 update to v1.3.275
Signed-off-by: andrew0229 <zhangzhao62@huawei.com>
Change-Id: Ifc4224db2c6ea7c159d3cabe8f075475d47a41a8
2024-05-21 08:09:09 +00:00
Charles Giessen 5de034c96f Enable layer interception of unknown functions
Re-add previously reverted behavior that allows layers to setup dispatch chains for unknown physical
device and device functions during vkCreateInstance. Previously, functions not known to the loader could not
be queried by a layer during vkCreateInstance (when dispatch tables should be setup). The change adds support
for unknown functions in the trampolines of vkGetInstanceProcAddr and vkGetPhysicalDeviceProcAddr.

Unknown Device functions not listed in a layers manifest will now be found through vkGetInstanceProcAddr,
which was previously not used.
2022-09-01 12:23:17 -06:00
Brad Grantham 018afe955d only descend into layer GPDPA from trampoline 2022-06-21 18:43:19 -06:00
Charles Giessen 565ff9668a Only check first GPDPA in the layer chain.
When checking for unknown physical device functions, check the first layer that supports
vk_layerGetPhysicalDeviceProcAddr in the chain starting with the layer closest to the
application. This prevents unecessary work being done, and if any layer wraps VkInstance
will properly call through the wrapping layer first without calling into any other layer.
2022-06-06 21:34:36 -06:00
Charles Giessen a63c37176d Revert "fix #948 Only calls the first GPDPA in layer chain"
This reverts commit 3c680eef40.
2022-06-01 19:26:13 -06:00
Charles Giessen ceb70497bd Revert "Comment tweak to reflect new behaviour."
This reverts commit 36c42e1574.
2022-06-01 19:26:13 -06:00
Andrew Cox 36c42e1574 Comment tweak to reflect new behaviour. 2022-06-01 12:48:01 -06:00
Andrew Cox 3c680eef40 fix #948 Only calls the first GPDPA in layer chain 2022-06-01 12:48:01 -06:00
Charles Giessen dec1fcac60 Remove hasing of unknown functions
Use a simple linear search instead. This greatly simplifies the logic and
reduces the places for the logic to go awry.
2022-03-14 23:31:26 -06:00
Charles Giessen b986091316 Move unknown function logic into dedicated file
unknown_function_handling.c now holds all of the unknown function handling
logic.
2022-03-14 23:31:26 -06:00