summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Lehmann <dadschoorse@gmail.com>2020-12-31 16:18:49 +0100
committerMarge Bot <eric+marge@anholt.net>2021-01-12 22:27:49 +0000
commitfff77e4b434a4989e6c54ab7ef8d1aa22fe81b3a (patch)
tree0be767b9cd91b582cec84860a0d4d8d82b2f13fc
parentad25aae1f3c44048ce64b858dc5f645b4504b5ee (diff)
vulkan/overlay: fix vkGetInstanceProcAddr self-resolving
vkGetInstanceProcAddr(instance, "vkGetInstanceProcAddr") should return our vkGetInstanceProcAddr not the next in the chain. CC: mesa-stable Signed-off-by: Georg Lehmann <dadschoorse@gmail.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8285>
-rw-r--r--src/vulkan/overlay-layer/overlay.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vulkan/overlay-layer/overlay.cpp b/src/vulkan/overlay-layer/overlay.cpp
index 32ea1d37378..2b071482ecf 100644
--- a/src/vulkan/overlay-layer/overlay.cpp
+++ b/src/vulkan/overlay-layer/overlay.cpp
@@ -2586,6 +2586,7 @@ static const struct {
const char *name;
void *ptr;
} name_to_funcptr_map[] = {
+ { "vkGetInstanceProcAddr", (void *) vkGetInstanceProcAddr },
{ "vkGetDeviceProcAddr", (void *) vkGetDeviceProcAddr },
#define ADD_HOOK(fn) { "vk" # fn, (void *) overlay_ ## fn }
#define ADD_ALIAS_HOOK(alias, fn) { "vk" # alias, (void *) overlay_ ## fn }