Lines Matching defs:count

229         for (uint32_t i = 0; i < layer_properties->device_extension_list.count; i++) {
251 if (instance_layers->count > 0) {
252 *libs = loader_calloc(NULL, sizeof(loader_platform_dl_handle) * instance_layers->count, VK_SYSTEM_ALLOCATION_SCOPE_COMMAND);
277 string_list->count = 0;
290 } else if (string_list->count + 1 > string_list->allocated_count) {
301 string_list->list[string_list->count++] = str;
325 for (uint32_t i = 0; i < string_list->count; i++) {
374 bool has_vk_extension_property_array(const VkExtensionProperties *vk_ext_prop, const uint32_t count,
376 for (uint32_t i = 0; i < count; i++) {
384 for (uint32_t i = 0; i < ext_list->count; i++) {
392 for (uint32_t i = 0; i < ext_list->count; i++) {
409 if ((layer_list->count + 1) * sizeof(struct loader_layer_properties) > layer_list->capacity) {
421 memcpy(&layer_list->list[layer_list->count], layer_property, sizeof(struct loader_layer_properties));
422 layer_list->count++;
433 for (uint32_t i = 0; i < layer_list->count; i++) {
442 for (uint32_t i = 0; i < layer_list->count; i++) {
463 for (uint32_t comp_layer = 0; comp_layer < meta_layer_props->component_layer_names.count; comp_layer++) {
478 for (uint32_t black_layer = 0; black_layer < meta_layer_props->blacklist_layer_names.count; ++black_layer) {
491 for (i = 0; i < layer_list->count; i++) {
500 layer_list->count = 0;
511 if (layer_list == NULL || layer_to_remove >= layer_list->count) {
519 sizeof(struct loader_layer_properties) * (layer_list->count - 1 - layer_to_remove));
521 // Decrement the count (because we now have one less) and decrement the loop index since we need to
523 layer_list->count--;
534 for (int32_t j = 0; j < (int32_t)(layer_list->count); j++) {
562 int32_t layer_count = (int32_t)(layer_list->count);
593 for (i = 0; i < (int32_t)(layer_list->count); i++) {
610 uint32_t i, count = 0;
628 res = fp_get_props(NULL, &count, NULL);
631 "loader_add_instance_extensions: Error getting Instance extension count from %s", lib_name);
635 if (count == 0) {
640 ext_props = loader_stack_alloc(count * sizeof(VkExtensionProperties));
646 res = fp_get_props(NULL, &count, ext_props);
653 for (i = 0; i < count; i++) {
671 uint32_t i = 0, count = 0;
675 res = fpEnumerateDeviceExtensionProperties(physical_device, NULL, &count, NULL);
678 "loader_add_device_extensions: Error getting physical device extension info count from library %s", lib_name);
681 if (count > 0) {
682 ext_props = loader_stack_alloc(count * sizeof(VkExtensionProperties));
689 res = fpEnumerateDeviceExtensionProperties(physical_device, NULL, &count, ext_props);
693 for (i = 0; i < count; i++) {
706 list_info->count = 0;
743 if (ext_list->count * sizeof(VkExtensionProperties) >= ext_list->capacity) {
757 memcpy(&ext_list->list[ext_list->count], cur_ext, sizeof(VkExtensionProperties));
758 ext_list->count++;
783 uint32_t idx = ext_list->count;
807 ext_list->count++;
822 list->count = 0;
852 if (((list->count + 1) * sizeof(struct loader_layer_properties)) >= list->capacity) {
864 list->list[list->count++] = props;
999 for (uint32_t i = 0; i < inst->instance_layer_list.count; ++i) {
1006 for (uint32_t i = 0; i < override->component_layer_names.count; ++i) {
1055 for (uint32_t comp_layer = 0; comp_layer < prop->component_layer_names.count; comp_layer++) {
1116 for (uint32_t i = 0; i < list->count; i++) {
1123 for (uint32_t i = 0; i < list->count; i++) {
1163 for (uint32_t i = 0; i < icd_tramp_list->count; i++) {
1173 for (int32_t j = 0; j < (int32_t)icd_exts.count; j++) {
1185 for (uint32_t k = j + 1; k < icd_exts.count; k++) {
1188 --icd_exts.count;
1194 res = loader_add_to_ext_list(inst, inst_exts, icd_exts.count, icd_exts.list);
1379 for (uint32_t i = 0; i < icd_tramp_list->count; i++) {
1489 if ((icd_tramp_list->count * sizeof(struct loader_scanned_icd)) >= icd_tramp_list->capacity) {
1515 new_scanned_icd = &(icd_tramp_list->scanned_list[icd_tramp_list->count]);
1528 icd_tramp_list->count++;
1777 if ((icd_tramp_list->count * sizeof(struct loader_scanned_icd)) >= icd_tramp_list->capacity) {
1800 new_scanned_icd = &(icd_tramp_list->scanned_list[icd_tramp_list->count]);
1817 icd_tramp_list->count++;
2022 for (uint32_t comp_layer = 0; comp_layer < prop->component_layer_names.count; comp_layer++) {
2073 prop->component_layer_names.count);
2076 for (uint32_t comp_layer = 0; comp_layer < prop->component_layer_names.count; comp_layer++) {
2087 for (uint32_t comp_layer = 0; comp_layer < prop->component_layer_names.count; comp_layer++) {
2092 for (uint32_t ext = 0; ext < comp_prop->instance_extension_list.count; ext++) {
2107 for (uint32_t ext = 0; ext < comp_prop->device_extension_list.count; ext++) {
2130 for (int32_t i = 0; i < (int32_t)instance_layers->count; i++) {
2173 for (uint32_t i = 0; i < instance_layers->count; i++) {
2176 if (props->app_key_paths.count > 0) { // not the global layer
2177 for (uint32_t j = 0; j < props->app_key_paths.count; j++) {
2494 int count = loader_cJSON_GetArraySize(instance_extensions);
2495 for (int i = 0; i < count; i++) {
2524 int count = loader_cJSON_GetArraySize(device_extensions);
2525 for (int i = 0; i < count; i++) {
2724 // Loop through all "layer" objects in the file to get a count of them
2926 if (use_first_found_manifest && out_files->count > 0) {
3299 if (log_flags != 0 && out_files->count > 0) {
3301 for (uint32_t cur_file = 0; cur_file < out_files->count; ++cur_file) {
3404 if (VK_SUCCESS != tmp_res && out_files->count == 0) {
3636 icd_details = loader_stack_alloc(sizeof(struct ICDManifestInfo) * manifest_files.count);
3641 memset(icd_details, 0, sizeof(struct ICDManifestInfo) * manifest_files.count);
3643 for (uint32_t i = 0; i < manifest_files.count; i++) {
3654 if (select_filter.count > 0 || disable_filter.count > 0) {
3666 (select_filter.count > 0 && check_name_matches_filter_environment_var(just_filename_str, &select_filter));
3668 (disable_filter.count > 0 && check_name_matches_filter_environment_var(just_filename_str, &disable_filter));
3676 if (select_filter.count != 0 && !name_matches_select) {
3718 for (uint32_t i = 0; i < manifest_files.count; i++) {
3740 for (uint32_t i = 0; i < manifest_files.count; i++) {
3776 if (prop->override_paths.count > 0) {
3779 for (uint32_t j = 0; j < prop->override_paths.count; j++) {
3787 for (uint32_t j = 0; j < prop->override_paths.count; j++) {
3831 for (uint32_t i = 0; i < regular_instance_layers.count; i++) {
3833 if (prop->is_override && loader_implicit_layer_is_enabled(inst, filters, prop) && prop->override_paths.count > 0) {
3863 for (uint32_t i = 0; i < regular_instance_layers.count; ++i) {
3913 for (uint32_t i = 0; i < regular_instance_layers.count; i++) {
3952 for (uint32_t i = 0; i < regular_instance_layers.count; ++i) {
4225 for (uint32_t src_layer = 0; src_layer < source_list->count; src_layer++) {
4236 for (uint32_t i = 0; i < inst->expanded_activated_layer_list.count; i++) {
4343 for (uint32_t j = 0; j < icd_exts->count; ++j) {
4349 for (uint32_t j = 0; j < inst->app_activated_layer_list.count; j++) {
4351 for (uint32_t k = 0; k < layer->device_extension_list.count; k++) {
4524 if (inst->expanded_activated_layer_list.count > 0) {
4531 layer_instance_link_info = loader_stack_alloc(sizeof(VkLayerInstanceLink) * inst->expanded_activated_layer_list.count);
4538 activated_layers = loader_stack_alloc(sizeof(struct activated_layer_info) * inst->expanded_activated_layer_list.count);
4546 for (int32_t i = inst->expanded_activated_layer_list.count - 1; i >= 0; i--) {
4666 for (uint32_t exp = 0; exp < inst->expanded_activated_layer_list.count; ++exp) {
4835 if (loader_create_info.enabledLayerCount != inst->enabled_layer_names.count && loader_create_info.enabledLayerCount > 0) {
4903 if (inst->expanded_activated_layer_list.count > 0) {
4904 layer_device_link_info = loader_stack_alloc(sizeof(VkLayerDeviceLink) * inst->expanded_activated_layer_list.count);
4911 activated_layers = loader_stack_alloc(sizeof(struct activated_layer_info) * inst->expanded_activated_layer_list.count);
4925 for (int32_t i = inst->expanded_activated_layer_list.count - 1; i >= 0; i--) {
5208 for (uint32_t j = 0; NULL == extension_prop && j < expanded_layers.count; ++j) {
5261 for (uint32_t j = 0; j < activated_device_layers->count; j++) {
5350 for (uint32_t i = 0; i < ptr_instance->icd_tramp_list.count; i++) {
6207 // Increment the count of new physical devices
6345 // current next element in new_phys_devs and passing in a `count` of currently unwritten elements
6364 // now set the count to the capacity, as now the list is filled in
6512 "terminator_EnumeratePhysicalDevices : Trimming device count from %d to %d.", inst->phys_dev_count_term,
6545 uint32_t count;
6552 for (uint32_t i = 0; i < inst->instance_layer_list.count; i++) {
6559 count = (dev_ext_list == NULL) ? 0 : dev_ext_list->count;
6561 *pPropertyCount = count;
6566 copy_size = *pPropertyCount < count ? *pPropertyCount : count;
6573 if (copy_size < count) {
6598 for (uint32_t i = 0; i < icd_term->this_instance->expanded_activated_layer_list.count; i++) {
6602 for (uint32_t j = 0; j < layer_ext_list->count; j++) {
6629 // We need to find the count without duplicates. This requires querying the driver for the names of the extensions.
6630 res = icd_term->dispatch.EnumerateDeviceExtensionProperties(phys_dev_term->phys_dev, NULL, &all_exts.count, NULL);
6635 // all_exts.count currently is the number of driver extensions
6636 all_exts.capacity = sizeof(VkExtensionProperties) * (all_exts.count + 20);
6644 res = icd_term->dispatch.EnumerateDeviceExtensionProperties(phys_dev_term->phys_dev, NULL, &all_exts.count, all_exts.list);
6650 for (uint32_t i = 0; i < icd_term->this_instance->expanded_activated_layer_list.count; i++) {
6654 for (uint32_t j = 0; j < layer_ext_list->count; j++) {
6663 // Write out the final de-duplicated count to pPropertyCount
6664 *pPropertyCount = all_exts.count;
6756 for (uint32_t i = 0; i < instance_layers.count; i++) {
6770 if ((VK_SUCCESS != res && icd_tramp_list.count > 0) || res == VK_ERROR_OUT_OF_HOST_MEMORY) {
6785 for (uint32_t i = 0; i < instance_layers.count; i++) {
6787 loader_add_to_ext_list(NULL, &local_ext_list, ext_list->count, ext_list->list);
6799 *pPropertyCount = global_ext_list->count;
6803 copy_size = *pPropertyCount < global_ext_list->count ? *pPropertyCount : global_ext_list->count;
6809 if (copy_size < global_ext_list->count) {
6846 for (uint32_t i = 0; i < instance_layer_list.count; i++) {
6870 if (copy_size < instance_layer_list.count) {
6916 "to ICD %d to get plain phys dev count.",
6926 "\'EnumeratePhysicalDeviceGroups\' to ICD %d to get count.",
6998 "\'EnumeratePhysicalDevices\' to ICD %d to get plain phys dev count.",
7017 "\'EnumeratePhysicalDeviceGroups\' to ICD %d to get group count.",
7253 "terminator_EnumeratePhysicalDeviceGroups : Trimming device count from %d to %d.",