Lines Matching defs:input

66  * matching input to another stage.
71 const ir_variable *input,
78 const glsl_type *type_to_match = input->type;
102 "doesn't match in type with %s shader input "
108 input->type->name);
131 "but %s shader input declared as type `%s'\n",
136 input->type->name);
152 input->data.centroid != output->data.centroid) {
155 "but %s shader input %s centroid qualifier\n",
160 (input->data.centroid) ? "has" : "lacks");
164 if (input->data.sample != output->data.sample) {
167 "but %s shader input %s sample qualifier\n",
172 (input->data.sample) ? "has" : "lacks");
176 if (input->data.patch != output->data.patch) {
179 "but %s shader input %s patch qualifier\n",
184 (input->data.patch) ? "has" : "lacks");
191 * one shader stage will still match an input of a subsequent stage
192 * without the input being declared as invariant."
205 if (input->data.explicit_invariant != output->data.explicit_invariant &&
209 "but %s shader input %s invariant qualifier\n",
214 (input->data.explicit_invariant) ? "has" : "lacks");
234 unsigned input_interpolation = input->data.interpolation;
248 "but %s shader input specifies %s "
254 interpolation_string(input->data.interpolation));
260 "but %s shader input specifies %s "
266 interpolation_string(input->data.interpolation));
272 * Validate front and back color outputs against single color input
277 const ir_variable *input,
284 cross_validate_types_and_qualifiers(consts, prog, input, front_color,
288 cross_validate_types_and_qualifiers(consts, prog, input, back_color,
611 * Check if we should force input / output matching between shader
616 * "Only the input variables that are actually read need to be
618 * superfluous declarations of input variables."
626 * "Only the input variables that are statically read need to
628 * superfluous declarations of input variables."
631 * read an input that is not defined in the previous stage. While
638 * the input is not actually read in control flow we only apply
694 ir_variable *const input = node->as_variable();
696 if (input == NULL || input->data.mode != ir_var_shader_in)
699 if (strcmp(input->name, "gl_Color") == 0 && input->data.used) {
706 cross_validate_front_and_back_color(consts, prog, input,
709 } else if (strcmp(input->name, "gl_SecondaryColor") == 0 && input->data.used) {
716 cross_validate_front_and_back_color(consts, prog, input,
726 if (input->data.explicit_location
727 && input->data.location >= VARYING_SLOT_VAR0) {
729 const glsl_type *type = get_varying_type(input, consumer->Stage);
732 compute_variable_location_slot(input, consumer->Stage);
737 input, prog, consumer)) {
749 output = output_explicit_locations[idx][input->data.location_frac].var;
754 * declared input.
756 if (input->data.used && static_input_output_matching(prog)) {
758 "%s shader input `%s' with explicit location "
761 input->name);
764 } else if (input->data.location != output->data.location) {
766 "%s shader input `%s' with explicit location "
769 input->name);
775 output = parameters.get_variable(input->name);
782 if (!(input->get_interface_type() &&
784 cross_validate_types_and_qualifiers(consts, prog, input, output,
788 /* Check for input vars with unmatched output vars in prev stage
792 assert(!input->data.assigned);
793 if (input->data.used && !input->get_interface_type() &&
794 !input->data.explicit_location &&
797 "%s shader input `%s' "
800 input->name);