Lines Matching defs:existing

883                            ir_variable *const existing,
891 if (var->type->is_array() && existing->type->is_array()) {
893 const glsl_type *no_array_existing = existing->type->fields.array;
901 ((var->type->length == 0)|| (existing->type->length == 0))) {
903 if ((int)var->type->length <= existing->data.max_array_access) {
909 existing->data.max_array_access);
911 existing->type = var->type;
913 } else if (existing->type->length != 0) {
914 if((int)existing->type->length <= var->data.max_array_access &&
915 !existing->data.from_ssbo_unsized_array) {
920 var->name, existing->type->name,
969 ir_variable *const existing = variables->get_variable(var->name);
970 if (existing != NULL) {
972 if (var->type != existing->type) {
973 if (!validate_intrastage_arrays(prog, var, existing)) {
982 existing->data.mode == ir_var_shader_storage &&
983 existing->data.from_ssbo_unsized_array &&
984 var->type->gl_type == existing->type->gl_type)) {
989 existing->type->name);
996 if (existing->data.explicit_location
997 && (var->data.location != existing->data.location)) {
1004 if (var->data.location_frac != existing->data.location_frac) {
1010 existing->data.location = var->data.location;
1011 existing->data.explicit_location = true;
1018 if (existing->data.explicit_location) {
1019 var->data.location = existing->data.location;
1031 if (existing->data.explicit_binding &&
1032 var->data.binding != existing->data.binding) {
1039 existing->data.binding = var->data.binding;
1040 existing->data.explicit_binding = true;
1044 var->data.offset != existing->data.offset) {
1065 var->data.depth_layout != existing->data.depth_layout;
1102 if (existing->constant_initializer != NULL &&
1103 !existing->data.is_implicit_initializer &&
1105 if (!var->constant_initializer->has_value(existing->constant_initializer)) {
1117 variables->replace_variable(existing->name, var);
1122 if (existing->data.has_initializer
1124 || existing->constant_initializer == NULL)) {
1133 if (existing->data.explicit_invariant != var->data.explicit_invariant) {
1139 if (existing->data.centroid != var->data.centroid) {
1145 if (existing->data.sample != var->data.sample) {
1151 if (existing->data.image_format != var->data.image_format) {
1163 existing->data.precision != var->data.precision) {
1164 if ((existing->data.used && var->data.used) || prog->data->Version >= 300) {
1188 const glsl_type *existing_itype = existing->get_interface_type();
1448 ir_variable *const existing =
1450 if (existing != NULL)
1451 ir->var = existing;
4075 * Builds up a list of program resources that point to existing