Lines Matching defs:result
1025 VkResult result = VK_SUCCESS;
1030 return result;
1033 result = loader_add_layer_properties_to_list(inst, target_list, prop);
1034 if (result == VK_ERROR_OUT_OF_HOST_MEMORY) return result;
1036 result = loader_add_layer_properties_to_list(inst, expanded_target_list, prop);
1039 result = loader_add_meta_layer(inst, filters, prop, target_list, expanded_target_list, source_list, NULL);
1042 return result;
1050 VkResult result = VK_SUCCESS;
1077 result = loader_add_implicit_layer(inst, search_prop, filters, target_list, expanded_target_list, source_list);
1078 if (result == VK_ERROR_OUT_OF_HOST_MEMORY) return result;
1082 result = loader_add_meta_layer(inst, filters, search_prop, target_list, expanded_target_list, source_list,
1084 if (result == VK_ERROR_OUT_OF_HOST_MEMORY) return result;
1088 result = loader_add_layer_properties_to_list(inst, target_list, search_prop);
1089 if (result == VK_ERROR_OUT_OF_HOST_MEMORY) return result;
1091 result = loader_add_layer_properties_to_list(inst, expanded_target_list, search_prop);
1092 if (result == VK_ERROR_OUT_OF_HOST_MEMORY) return result;
1106 result = loader_add_layer_properties_to_list(inst, target_list, prop);
1107 if (result == VK_ERROR_OUT_OF_HOST_MEMORY) return result;
1108 // Write the result to out_found_all_component_layers in case this function is being recursed
1112 return result;
1358 VkResult result = fp_negotiate_icd_version(pVersion);
1360 if (result == VK_ERROR_INCOMPATIBLE_DRIVER) {
1608 // Because icd_tramp's are prepended, this will result in the drivers appearing at the end
1879 VkResult result = loader_icd_scan(NULL, &scanned_icds, NULL, NULL);
1880 if (result != VK_SUCCESS) {
2244 VkResult result = VK_SUCCESS;
2249 result = loader_parse_json_string_to_existing_str(inst, layer_node, "name", VK_MAX_EXTENSION_NAME_SIZE, props.info.layerName);
2250 if (VK_ERROR_OUT_OF_HOST_MEMORY == result) goto out;
2251 if (VK_ERROR_INITIALIZATION_FAILED == result) {
2270 result = loader_parse_json_string(layer_node, "type", &type);
2271 if (VK_ERROR_OUT_OF_HOST_MEMORY == result) goto out;
2272 if (VK_ERROR_INITIALIZATION_FAILED == result) {
2282 result = VK_ERROR_INITIALIZATION_FAILED;
2293 result = VK_ERROR_INITIALIZATION_FAILED;
2299 result = loader_parse_json_string(layer_node, "api_version", &api_version);
2300 if (VK_ERROR_OUT_OF_HOST_MEMORY == result) goto out;
2301 if (VK_ERROR_INITIALIZATION_FAILED == result) {
2317 result = VK_ERROR_INITIALIZATION_FAILED;
2323 result = loader_parse_json_string(layer_node, "implementation_version", &implementation_version);
2324 if (VK_ERROR_OUT_OF_HOST_MEMORY == result) goto out;
2325 if (VK_ERROR_INITIALIZATION_FAILED == result) {
2336 result = loader_parse_json_string_to_existing_str(inst, layer_node, "description", VK_MAX_EXTENSION_NAME_SIZE,
2338 if (VK_ERROR_OUT_OF_HOST_MEMORY == result) goto out;
2339 if (VK_ERROR_INITIALIZATION_FAILED == result) {
2357 result = VK_ERROR_INITIALIZATION_FAILED;
2361 result = loader_copy_to_new_str(inst, filename, &props.manifest_file_name);
2362 if (result == VK_ERROR_OUT_OF_HOST_MEMORY) goto out;
2368 result = VK_ERROR_OUT_OF_HOST_MEMORY;
2373 result = combine_manifest_directory_and_library_path(inst, library_path_str, filename, &props.lib_name);
2374 if (result == VK_ERROR_OUT_OF_HOST_MEMORY) goto out;
2385 result = loader_parse_json_array_of_strings(inst, layer_node, "component_layers", &(props.component_layer_names));
2386 if (VK_ERROR_OUT_OF_HOST_MEMORY == result) {
2389 if (VK_ERROR_INITIALIZATION_FAILED == result) {
2404 result = loader_parse_json_array_of_strings(inst, layer_node, "blacklisted_layers", &(props.blacklist_layer_names));
2405 if (VK_ERROR_OUT_OF_HOST_MEMORY == result) {
2412 result = loader_parse_json_array_of_strings(inst, layer_node, "override_paths", &(props.override_paths));
2413 if (VK_ERROR_OUT_OF_HOST_MEMORY == result) {
2428 result = VK_ERROR_INITIALIZATION_FAILED;
2436 result = VK_ERROR_INITIALIZATION_FAILED;
2439 result = loader_copy_to_new_str(inst, disable_environment->child->string, &(props.disable_env_var.name));
2440 if (VK_SUCCESS != result) goto out;
2441 result = loader_copy_to_new_str(inst, disable_environment->child->valuestring, &(props.disable_env_var.value));
2442 if (VK_SUCCESS != result) goto out;
2459 result = loader_parse_json_string(functions, "vkNegotiateLoaderLayerInterfaceVersion",
2461 if (result == VK_ERROR_OUT_OF_HOST_MEMORY) goto out;
2463 result = loader_parse_json_string(functions, "vkGetInstanceProcAddr", &props.functions.str_gipa);
2464 if (result == VK_ERROR_OUT_OF_HOST_MEMORY) goto out;
2474 result = loader_parse_json_string(functions, "vkGetDeviceProcAddr", &props.functions.str_gdpa);
2475 if (result == VK_ERROR_OUT_OF_HOST_MEMORY) goto out;
2498 result = loader_parse_json_string_to_existing_str(inst, ext_item, "name", VK_MAX_EXTENSION_NAME_SIZE,
2500 if (result == VK_ERROR_OUT_OF_HOST_MEMORY) goto out;
2501 if (result == VK_ERROR_INITIALIZATION_FAILED) continue;
2503 result = loader_parse_json_string(ext_item, "spec_version", &spec_version);
2504 if (result == VK_ERROR_OUT_OF_HOST_MEMORY) goto out;
2530 result = loader_parse_json_string_to_existing_str(inst, ext_item, "name", VK_MAX_EXTENSION_NAME_SIZE,
2532 if (result == VK_ERROR_OUT_OF_HOST_MEMORY) goto out;
2535 result = loader_parse_json_string(ext_item, "spec_version", &spec_version);
2536 if (result == VK_ERROR_OUT_OF_HOST_MEMORY) goto out;
2544 result = loader_add_to_dev_ext_list(inst, &props.device_extension_list, &ext_prop, NULL);
2545 if (result == VK_ERROR_OUT_OF_HOST_MEMORY) goto out;
2550 result = loader_parse_json_array_of_strings(inst, ext_item, "entrypoints", &entrys);
2551 if (result == VK_ERROR_OUT_OF_HOST_MEMORY) goto out;
2552 result = loader_add_to_dev_ext_list(inst, &props.device_extension_list, &ext_prop, &entrys);
2553 if (result == VK_ERROR_OUT_OF_HOST_MEMORY) goto out;
2561 result = loader_copy_to_new_str(inst, enable_environment->child->string, &(props.enable_env_var.name));
2562 if (VK_SUCCESS != result) goto out;
2563 result = loader_copy_to_new_str(inst, enable_environment->child->valuestring, &(props.enable_env_var.value));
2564 if (VK_SUCCESS != result) goto out;
2583 result = loader_parse_json_string(pre_instance, "vkEnumerateInstanceExtensionProperties",
2585 if (result == VK_ERROR_OUT_OF_HOST_MEMORY) goto out;
2587 result = loader_parse_json_string(pre_instance, "vkEnumerateInstanceLayerProperties",
2589 if (result == VK_ERROR_OUT_OF_HOST_MEMORY) goto out;
2591 result = loader_parse_json_string(pre_instance, "vkEnumerateInstanceVersion",
2593 if (result == VK_ERROR_OUT_OF_HOST_MEMORY) goto out;
2605 result = loader_parse_json_array_of_strings(inst, layer_node, "app_keys", &props.app_key_paths);
2606 if (result == VK_ERROR_OUT_OF_HOST_MEMORY) goto out;
2610 result = loader_parse_json_string(layer_node, "library_arch", &library_arch);
2611 if (result == VK_ERROR_OUT_OF_HOST_MEMORY) goto out;
2618 result = VK_ERROR_INITIALIZATION_FAILED;
2624 result = VK_SUCCESS;
2628 if (VK_SUCCESS == result) {
2629 result = loader_append_layer_property(inst, layer_instance_list, &props);
2632 if (VK_SUCCESS != result) {
2638 return result;
2666 VkResult result = VK_ERROR_INITIALIZATION_FAILED;
2680 result = VK_ERROR_OUT_OF_HOST_MEMORY;
2713 result = loader_read_layer_json(inst, layer_instance_list, layer_node, json_version, is_implicit, filename);
2743 result = loader_read_layer_json(inst, layer_instance_list, layer_node, json_version, is_implicit, filename);
2752 return result;
3236 // Remove duplicate paths, or it would result in duplicate extensions, duplicate devices, etc.
3593 // Vulkan result
3594 // (on result == VK_SUCCESS) a list of icds that were discovered
4228 VkResult result = loader_add_implicit_layer(inst, prop, filters, target_list, expanded_target_list, source_list);
4229 if (result == VK_ERROR_OUT_OF_HOST_MEMORY) return result;
4316 VkResult result = fp_negotiate_layer_version(interface_struct);
4318 if (result != VK_SUCCESS) {
5086 VkStringErrorFlags result = vk_string_validate(MaxLoaderStringLength, ppEnabledLayerNames[i]);
5087 if (result != VK_STRING_ERROR_NONE) {
5163 VkStringErrorFlags result = vk_string_validate(MaxLoaderStringLength, pCreateInfo->ppEnabledExtensionNames[i]);
5164 if (result != VK_STRING_ERROR_NONE) {
5245 VkStringErrorFlags result = vk_string_validate(MaxLoaderStringLength, pCreateInfo->ppEnabledExtensionNames[i]);
5246 if (result != VK_STRING_ERROR_NONE) {
6674 VkStringErrorFlags result = VK_STRING_ERROR_NONE;
6686 result |= VK_STRING_ERROR_LENGTH;
6697 result = VK_STRING_ERROR_BAD_DATA;
6703 result |= VK_STRING_ERROR_LENGTH;
6707 result |= VK_STRING_ERROR_BAD_DATA;
6711 return result;
6825 VkResult result = VK_SUCCESS;
6833 result = parse_layer_environment_var_filters(NULL, &layer_filters);
6834 if (VK_SUCCESS != result) {
6840 result = loader_scan_for_layers(NULL, &instance_layer_list, &layer_filters);
6841 if (VK_SUCCESS != result) {
6871 result = VK_INCOMPLETE;
6878 return result;