only descend into layer GPDPA from trampoline
authorBrad Grantham <brad@lunarg.com>
Tue, 7 Jun 2022 21:11:54 +0000 (14:11 -0700)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Wed, 22 Jun 2022 00:43:19 +0000 (18:43 -0600)
loader/unknown_function_handling.c

index 23e4e69f30a9befba6d9396e0982b0909917f501..582c9ab3a4cb75b083ec0ac572cc65aea4a7b7a2 100644 (file)
@@ -218,7 +218,7 @@ void *loader_phys_dev_ext_gpa_impl(struct loader_instance *inst, const char *fun
     if (!loader_check_icds_for_phys_dev_ext_address(inst, funcName)) {
         // If we're not checking layers, or we are and it's not in a layer, just
         // return
-        if (!loader_check_layer_list_for_phys_dev_ext_address(inst, funcName)) {
+        if (!is_tramp || !loader_check_layer_list_for_phys_dev_ext_address(inst, funcName)) {
             return NULL;
         }
     }