Lines Matching refs:formal
73 * formal (\c ir_variable) or actual (\c ir_rvalue)
102 const ir_variable *formal, const ir_variable *actual)
109 * to functions whose formal parameters lack such
111 * on a formal parameter, but not to have fewer."
113 if (actual->data.memory_coherent && !formal->data.memory_coherent) {
116 "`coherent' qualifier", formal->name);
120 if (actual->data.memory_volatile && !formal->data.memory_volatile) {
123 "`volatile' qualifier", formal->name);
127 if (actual->data.memory_restrict && !formal->data.memory_restrict) {
130 "`restrict' qualifier", formal->name);
134 if (actual->data.memory_read_only && !formal->data.memory_read_only) {
137 "`readonly' qualifier", formal->name);
141 if (actual->data.memory_write_only && !formal->data.memory_write_only) {
144 "`writeonly' qualifier", formal->name);
180 * that 'const_in' formal parameters (an extension in our IR) correspond to
192 foreach_in_list(const ir_variable, formal, &sig->parameters) {
207 if (formal->data.mode == ir_var_const_in &&
211 formal->name);
216 if (formal->data.must_be_shader_input) {
224 formal->name);
247 formal->name);
255 if (formal->data.mode == ir_var_function_out
256 || formal->data.mode == ir_var_function_inout) {
258 switch (formal->data.mode) {
271 mode, formal->name,
278 if (var && formal->data.mode == ir_var_function_inout) {
295 mode, formal->name,
301 mode, formal->name);
305 assert(formal->data.mode == ir_var_function_in ||
306 formal->data.mode == ir_var_const_in);
319 if (formal->type->is_image() &&
321 if (!verify_image_parameter(&loc, state, formal,
397 * require an implicit conversion to exist both to and from the formal
461 ir_variable *formal = (ir_variable *) formal_node;
463 if (formal->type->is_numeric() || formal->type->is_boolean()) {
464 switch (formal->data.mode) {
468 = convert_component(actual, formal->type);
474 fix_parameter(ctx, actual, formal->type,
476 formal->data.mode == ir_var_function_inout);
479 assert (!"Illegal formal parameter mode");