Lines Matching defs:existing
787 ir_variable *const existing,
795 if (var->type->is_array() && existing->type->is_array()) {
797 const glsl_type *no_array_existing = existing->type->fields.array;
805 ((var->type->length == 0)|| (existing->type->length == 0))) {
807 if ((int)var->type->length <= existing->data.max_array_access) {
813 existing->data.max_array_access);
815 existing->type = var->type;
817 } else if (existing->type->length != 0) {
818 if((int)existing->type->length <= var->data.max_array_access &&
819 !existing->data.from_ssbo_unsized_array) {
824 var->name, existing->type->name,
874 ir_variable *const existing = variables->get_variable(var->name);
875 if (existing != NULL) {
877 if (var->type != existing->type) {
878 if (!validate_intrastage_arrays(prog, var, existing)) {
887 existing->data.mode == ir_var_shader_storage &&
888 existing->data.from_ssbo_unsized_array &&
889 var->type->gl_type == existing->type->gl_type)) {
894 existing->type->name);
901 if (existing->data.explicit_location
902 && (var->data.location != existing->data.location)) {
909 if (var->data.location_frac != existing->data.location_frac) {
915 existing->data.location = var->data.location;
916 existing->data.explicit_location = true;
923 if (existing->data.explicit_location) {
924 var->data.location = existing->data.location;
936 if (existing->data.explicit_binding &&
937 var->data.binding != existing->data.binding) {
944 existing->data.binding = var->data.binding;
945 existing->data.explicit_binding = true;
949 var->data.offset != existing->data.offset) {
970 var->data.depth_layout != existing->data.depth_layout;
1007 if (existing->constant_initializer != NULL &&
1008 !existing->data.is_implicit_initializer &&
1010 if (!var->constant_initializer->has_value(existing->constant_initializer)) {
1022 variables->replace_variable(existing->name, var);
1027 if (existing->data.has_initializer
1029 || existing->constant_initializer == NULL)) {
1038 if (existing->data.explicit_invariant != var->data.explicit_invariant) {
1044 if (existing->data.centroid != var->data.centroid) {
1050 if (existing->data.sample != var->data.sample) {
1056 if (existing->data.image_format != var->data.image_format) {
1068 existing->data.precision != var->data.precision) {
1069 if ((existing->data.used && var->data.used) || prog->data->Version >= 300) {
1093 const glsl_type *existing_itype = existing->get_interface_type();
1353 ir_variable *const existing =
1355 if (existing != NULL)
1356 ir->var = existing;