Lines Matching full:loc
167 struct _mesa_glsl_parse_state *state, YYLTYPE *loc)
179 _mesa_glsl_error(loc, state,
191 _mesa_glsl_error(loc, state,
209 _mesa_glsl_error(loc, state,
252 _mesa_glsl_error(loc, state,
345 _mesa_glsl_error(loc, state, "size mismatch for matrix multiplication");
352 _mesa_glsl_error(loc, state, "type mismatch");
359 struct _mesa_glsl_parse_state *state, YYLTYPE *loc)
370 _mesa_glsl_error(loc, state,
391 struct _mesa_glsl_parse_state *state, YYLTYPE *loc)
394 _mesa_glsl_error(loc, state, "bit operations require GLSL 1.30");
405 _mesa_glsl_error(loc, state, "LHS of `%s' must be an integer",
410 _mesa_glsl_error(loc, state, "RHS of `%s' must be an integer",
419 _mesa_glsl_error(loc, state, "operands of `%s' must have the same "
428 _mesa_glsl_error(loc, state, "operands of `%s' cannot be vectors of "
447 struct _mesa_glsl_parse_state *state, YYLTYPE *loc)
450 _mesa_glsl_error(loc, state,
462 _mesa_glsl_error(loc, state, "LHS of operator %% must be an integer.");
466 _mesa_glsl_error(loc, state, "RHS of operator %% must be an integer.");
470 _mesa_glsl_error(loc, state,
490 _mesa_glsl_error(loc, state, "type mismatch");
497 struct _mesa_glsl_parse_state *state, YYLTYPE *loc)
511 _mesa_glsl_error(loc, state,
523 _mesa_glsl_error(loc, state,
532 _mesa_glsl_error(loc, state, "base type mismatch");
554 struct _mesa_glsl_parse_state *state, YYLTYPE *loc)
557 _mesa_glsl_error(loc, state, "bit operations require GLSL 1.30");
568 _mesa_glsl_error(loc, state, "LHS of operator %s must be an integer or "
574 _mesa_glsl_error(loc, state, "RHS of operator %s must be an integer or "
583 _mesa_glsl_error(loc, state, "If the first operand of %s is scalar, the "
595 _mesa_glsl_error(loc, state, "Vector operands to operator %s must "
899 YYLTYPE loc = expr->get_location();
900 _mesa_glsl_error(&loc, state, "%s of `%s' must be scalar boolean",
915 YYLTYPE loc, struct _mesa_glsl_parse_state *state)
924 _mesa_glsl_error(&loc, state, "`gl_TexCoord' array size cannot "
939 _mesa_glsl_error(&loc, state, "`gl_ClipDistance' array size cannot "
1033 YYLTYPE loc;
1035 loc = this->get_location();
1053 type = unary_arithmetic_result_type(op[0]->type, state, & loc);
1063 type = unary_arithmetic_result_type(op[0]->type, state, & loc);
1080 state, & loc);
1091 type = modulus_result_type(op[0]->type, op[1]->type, state, & loc);
1103 _mesa_glsl_error(&loc, state, "operator %s requires GLSL 1.30",
1111 &loc);
1124 type = relational_result_type(op[0], op[1], state, & loc);
1155 _mesa_glsl_error(& loc, state, "operands of `%s' must have the same "
1160 _mesa_glsl_error(& loc, state, "array comparisons forbidden in "
1179 state, &loc);
1189 _mesa_glsl_error(&loc, state, "bit-wise operations require GLSL 1.30");
1194 _mesa_glsl_error(&loc, state, "operand of `~' must be an integer");
1307 state, & loc);
1330 type = modulus_result_type(op[0]->type, op[1]->type, state, & loc);
1351 &loc);
1368 state, &loc);
1412 YYLTYPE loc = this->subexpressions[1]->get_location();
1414 _mesa_glsl_error(& loc, state, "Second and third operands of ?: "
1428 _mesa_glsl_error(& loc, state, "Second and third operands of ?: "
1476 type = arithmetic_result_type(op[0], op[1], false, state, & loc);
1499 type = arithmetic_result_type(op[0], op[1], false, state, & loc);
1605 _mesa_glsl_error(& loc, state, "%s index must be < %u",
1609 _mesa_glsl_error(& loc, state, "%s index must be >= 0",
1628 if (check_builtin_array_max_size(v->name, idx+1, loc, state))
1633 _mesa_glsl_error(&loc, state, "unsized array index must be constant");
1664 _mesa_glsl_warning(&loc, state,
1668 _mesa_glsl_warning(&loc, state,
1673 _mesa_glsl_error(&loc, state,
1706 _mesa_glsl_error(& loc, state, "`%s' undeclared",
1743 YYLTYPE previous_operand_loc = loc;
1789 _mesa_glsl_error(& loc, state, "type mismatch");
1837 process_array_type(YYLTYPE *loc, const glsl_type *base, ast_node *array_size,
1847 _mesa_glsl_error(loc, state,
1857 YYLTYPE loc = array_size->get_location();
1861 _mesa_glsl_error(& loc, state, "array size must be integer type");
1863 _mesa_glsl_error(& loc, state, "array size must be scalar type");
1868 _mesa_glsl_error(& loc, state, "array size must be a "
1871 _mesa_glsl_error(& loc, state, "array size must be > 0");
1890 _mesa_glsl_error(loc, state, "unsized array declarations are not "
1908 YYLTYPE loc = this->get_location();
1909 type = process_array_type(&loc, type, this->array_size, state);
1920 YYLTYPE *loc,
1925 _mesa_glsl_error(loc, state,
1944 _mesa_glsl_error(loc, state,
1966 _mesa_glsl_error(loc, state,
2014 _mesa_glsl_error(loc, state,
2027 _mesa_glsl_error(loc, state,
2053 _mesa_glsl_error(loc, state,
2067 _mesa_glsl_error(loc, state,
2101 _mesa_glsl_error(loc, state,
2110 _mesa_glsl_error(loc, state,
2151 _mesa_glsl_warning(loc, state,
2155 _mesa_glsl_error(loc, state,
2171 _mesa_glsl_error(loc, state,
2177 _mesa_glsl_error(loc, state,
2182 _mesa_glsl_error(loc, state,
2200 _mesa_glsl_error(loc, state,
2208 _mesa_glsl_error(loc, state,
2244 YYLTYPE loc = decl->get_location();
2261 check_builtin_array_max_size(var->name, size, loc, state);
2263 _mesa_glsl_error(& loc, state, "array size must be > %u due to "
2314 _mesa_glsl_error(&loc, state,
2322 _mesa_glsl_error(&loc, state,
2333 _mesa_glsl_error(&loc, state, "`%s' redeclared", decl->identifier);
2474 YYLTYPE loc = this->get_location();
2491 _mesa_glsl_error(& loc, state,
2504 _mesa_glsl_error(& loc, state,
2509 _mesa_glsl_error(& loc, state,
2514 _mesa_glsl_error(& loc, state,
2518 _mesa_glsl_error(& loc, state,
2562 _mesa_glsl_warning(&loc, state, "empty declaration");
2564 _mesa_glsl_error(&loc, state,
2581 _mesa_glsl_error(& loc, state,
2585 _mesa_glsl_error(& loc, state,
2593 var_type = process_array_type(&loc, decl_type, decl->array_size,
2618 _mesa_glsl_error(& loc, state,
2624 _mesa_glsl_error(& loc, state,
2633 & loc, this->ubo_qualifiers_valid);
2641 _mesa_glsl_error(& loc, state,
2649 _mesa_glsl_error(& loc, state,
2677 _mesa_glsl_error(& loc, state,
2719 _mesa_glsl_error(& loc, state,
2729 _mesa_glsl_error(& loc, state,
2751 _mesa_glsl_error(&loc, state, "If a vertex output is an integer, "
2776 _mesa_glsl_error(&loc, state,
2799 _mesa_glsl_error(&loc, state,
2806 _mesa_glsl_error(&loc, state,
2825 _mesa_glsl_error(&loc, state,
2836 _mesa_glsl_error(&loc, state,
2863 _mesa_glsl_error(&loc, state,
2877 _mesa_glsl_error(&loc, state, "samplers must be declared uniform");
2902 _mesa_glsl_error(& loc, state,
2919 _mesa_glsl_error(& loc, state,
2930 _mesa_glsl_error(& loc, state,
2948 YYLTYPE loc = this->get_location();
2949 _mesa_glsl_error(&loc, state, "name `%s' already taken in the "
2987 YYLTYPE loc = this->get_location();
2993 _mesa_glsl_error(& loc, state,
2997 _mesa_glsl_error(& loc, state,
3019 _mesa_glsl_error(& loc, state,
3027 _mesa_glsl_error(& loc, state, "formal parameter lacks a name");
3035 type = process_array_type(&loc, type, this->array_size, state);
3039 _mesa_glsl_error(&loc, state, "arrays passed as parameters must have "
3050 apply_type_qualifier_to_variable(& this->type->qualifier, var, state, & loc,
3061 _mesa_glsl_error(&loc, state, "out and inout parameters cannot contain samplers");
3081 _mesa_glsl_error(&loc, state, "Arrays cannot be out or inout parameters in GLSL 1.10");
3113 YYLTYPE loc = void_param->get_location();
3115 _mesa_glsl_error(& loc, state,
3165 YYLTYPE loc = this->get_location();
3166 _mesa_glsl_error(&loc, state,
3178 YYLTYPE loc = this->get_location();
3179 _mesa_glsl_error(&loc, state,
3196 YYLTYPE loc = this->get_location();
3197 _mesa_glsl_error(&loc, state,
3207 YYLTYPE loc = this->get_location();
3208 _mesa_glsl_error(& loc, state,
3218 YYLTYPE loc = this->get_location();
3219 _mesa_glsl_error(&loc, state,
3234 YYLTYPE loc = this->get_location();
3236 _mesa_glsl_error(&loc, state, "function `%s' parameter `%s' "
3241 YYLTYPE loc = this->get_location();
3243 _mesa_glsl_error(&loc, state, "function `%s' return type doesn't "
3248 YYLTYPE loc = this->get_location();
3250 _mesa_glsl_error(& loc, state, "function `%s' redefined", name);
3257 YYLTYPE loc = this->get_location();
3259 _mesa_glsl_error(&loc, state, "function name `%s' conflicts with "
3270 YYLTYPE loc = this->get_location();
3272 _mesa_glsl_error(& loc, state, "main() must return void");
3276 YYLTYPE loc = this->get_location();
3278 _mesa_glsl_error(& loc, state, "main() must not take any parameters");
3326 YYLTYPE loc = this->get_location();
3328 _mesa_glsl_error(& loc, state, "parameter `%s' redeclared", var->name);
3344 YYLTYPE loc = this->get_location();
3345 _mesa_glsl_error(& loc, state, "function `%s' has non-void return type "
3383 YYLTYPE loc = this->get_location();
3385 _mesa_glsl_error(& loc, state,
3397 YYLTYPE loc = this->get_location();
3399 _mesa_glsl_error(& loc, state,
3414 YYLTYPE loc = this->get_location();
3416 _mesa_glsl_error(& loc, state,
3426 YYLTYPE loc = this->get_location();
3428 _mesa_glsl_error(& loc, state,
3433 YYLTYPE loc = this->get_location();
3435 _mesa_glsl_error(& loc, state,
3499 YYLTYPE loc = this->condition->get_location();
3501 _mesa_glsl_error(& loc, state, "if-statement condition must be scalar "
3543 YYLTYPE loc = this->test_expression->get_location();
3545 _mesa_glsl_error(& loc,
3713 YYLTYPE loc = this->test_value->get_location();
3715 _mesa_glsl_error(& loc, state,
3727 YYLTYPE loc = this->test_value->get_location();
3728 _mesa_glsl_error(& loc, state,
3731 loc = previous_label->get_location();
3732 _mesa_glsl_error(& loc, state,
3756 YYLTYPE loc = this->get_location();
3757 _mesa_glsl_error(& loc, state,
3760 loc = state->switch_state.previous_default->get_location();
3761 _mesa_glsl_error(& loc, state,
3789 YYLTYPE loc = condition->get_location();
3791 _mesa_glsl_error(& loc, state,
3872 YYLTYPE loc = this->get_location();
3877 _mesa_glsl_error(&loc, state,
3884 _mesa_glsl_error(&loc, state,
3904 _mesa_glsl_error(&loc, state,
3911 _mesa_glsl_error(&loc, state,
3965 YYLTYPE loc = this->get_location();
3966 _mesa_glsl_error(&loc, state, "Embedded structure definitions are "
3977 YYLTYPE loc = decl->get_location();
3978 field_type = process_array_type(&loc, decl_type, decl->array_size,
3993 YYLTYPE loc = this->get_location();
3995 _mesa_glsl_error(& loc, state, "struct `%s' previously defined", name);
4043 YYLTYPE loc = this->get_location();
4044 _mesa_glsl_error(&loc, state, "Uniform block name `%s' already taken in "
4096 YYLTYPE loc = decl_list->get_location();
4097 _mesa_glsl_error(&loc, state,
4118 YYLTYPE loc;
4119 memset(&loc, 0, sizeof(loc));
4156 _mesa_glsl_error(&loc, state, "fragment shader writes to both "
4159 _mesa_glsl_error(&loc, state, "fragment shader writes to both "
4163 _mesa_glsl_error(&loc, state, "fragment shader writes to both "