Comment tweak to reflect new behaviour.
authorAndrew Cox <andrew@lunarg.com>
Wed, 1 Jun 2022 17:08:36 +0000 (18:08 +0100)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Wed, 1 Jun 2022 18:48:01 +0000 (12:48 -0600)
loader/unknown_function_handling.c

index 1804eda97efe860347f0e12a67076bc56800f2a1..73569e51a3863d2b6917bb96d3ba3899e23975a2 100644 (file)
@@ -178,9 +178,9 @@ bool loader_check_icds_for_phys_dev_ext_address(struct loader_instance *inst, co
 
 bool loader_check_layer_list_for_phys_dev_ext_address(struct loader_instance *inst, const char *funcName) {
     struct loader_layer_properties *layer_prop_list = inst->expanded_activated_layer_list.list;
+    // Find the first layer in the call chain which supports vk_layerGetPhysicalDeviceProcAddr
+    // and call that, returning whether it found a valid pointer for this function name.
     for (uint32_t layer = 0; layer < inst->expanded_activated_layer_list.count; ++layer) {
-        // If this layer supports the vk_layerGetPhysicalDeviceProcAddr, then call
-        // it and see if it returns a valid pointer for this function name.
         if (layer_prop_list[layer].interface_version > 1) {
             const struct loader_layer_functions *const functions = &(layer_prop_list[layer].functions);
             if (NULL != functions->get_physical_device_proc_addr)