mirror of
https://gitee.com/openharmony/third_party_vulkan-loader
synced 2024-11-27 17:33:12 +00:00
Revert "Comment tweak to reflect new behaviour."
This reverts commit d86dc61e76
.
This commit is contained in:
parent
d86dc61e76
commit
aace830a23
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user