Lines Matching defs:existing
857 ir_variable *const existing)
864 if (var->type->is_array() && existing->type->is_array()) {
865 if ((var->type->fields.array == existing->type->fields.array) &&
866 ((var->type->length == 0)|| (existing->type->length == 0))) {
868 if ((int)var->type->length <= existing->data.max_array_access) {
874 existing->data.max_array_access);
876 existing->type = var->type;
878 } else if (existing->type->length != 0) {
879 if((int)existing->type->length <= var->data.max_array_access &&
880 !existing->data.from_ssbo_unsized_array) {
885 var->name, existing->type->name,
934 ir_variable *const existing = variables->get_variable(var->name);
935 if (existing != NULL) {
937 if (var->type != existing->type) {
938 if (!validate_intrastage_arrays(prog, var, existing)) {
947 existing->data.mode == ir_var_shader_storage &&
948 existing->data.from_ssbo_unsized_array &&
949 var->type->gl_type == existing->type->gl_type)) {
954 existing->type->name);
961 if (existing->data.explicit_location
962 && (var->data.location != existing->data.location)) {
969 if (var->data.location_frac != existing->data.location_frac) {
975 existing->data.location = var->data.location;
976 existing->data.explicit_location = true;
983 if (existing->data.explicit_location) {
984 var->data.location = existing->data.location;
996 if (existing->data.explicit_binding &&
997 var->data.binding != existing->data.binding) {
1004 existing->data.binding = var->data.binding;
1005 existing->data.explicit_binding = true;
1009 var->data.offset != existing->data.offset) {
1030 var->data.depth_layout != existing->data.depth_layout;
1065 if (existing->constant_initializer != NULL) {
1066 if (!var->constant_initializer->has_value(existing->constant_initializer)) {
1077 variables->replace_variable(existing->name, var);
1082 if (existing->data.has_initializer
1084 || existing->constant_initializer == NULL)) {
1093 if (existing->data.explicit_invariant != var->data.explicit_invariant) {
1099 if (existing->data.centroid != var->data.centroid) {
1105 if (existing->data.sample != var->data.sample) {
1111 if (existing->data.image_format != var->data.image_format) {
1123 existing->data.precision != var->data.precision) {
1124 if ((existing->data.used && var->data.used) || prog->data->Version >= 300) {
1148 const glsl_type *existing_itype = existing->get_interface_type();
1407 ir_variable *const existing =
1409 if (existing != NULL)
1410 ir->var = existing;
4420 * Builds up a list of program resources that point to existing