Lines Matching defs:name
235 error_var->name);
849 if (!index_var || strcmp(index_var->name, "gl_InvocationID") != 0) {
914 rhs->type->name, lhs->type->name);
967 lhs_var->name);
1165 const char *field_name = op0->type->fields.structure[i].name;
1234 * If name refers to a builtin array whose maximum allowed size is less than
1238 check_builtin_array_max_size(const char *name, unsigned size,
1241 if ((strcmp("gl_TexCoord", name) == 0)
1251 } else if (strcmp("gl_ClipDistance", name) == 0) {
1267 } else if (strcmp("gl_CullDistance", name) == 0) {
1718 "%s to %s", type->name, orig_type->name);
1759 "%s to %s", type->name, orig_type->name);
1826 "%s to %s", type->name, orig_type->name);
1905 "operands of the ?: operator", type->name);
2050 /* the identifier might be a subroutine name */
2064 && !is_gl_identifier(var->name)) {
2451 ast_type_specifier::glsl_type(const char **name,
2462 *name = this->type_name;
2721 type->name);
2741 ast_fully_specified_type::glsl_type(const char **name,
2744 return this->specifier->glsl_type(name, state);
3289 ">= MAX_UNIFORM_LOCATIONS (%u)", var->name,
3651 t->name);
3728 if (var->name != NULL && strcmp(var->name, "gl_FragCoord") == 0) {
3776 && (strcmp(var->name, "gl_FragCoord") != 0)) {
3932 && strcmp(var->name, "gl_FragDepth") != 0) {
4008 if (var->name != NULL && strcmp(var->name, "gl_Layer") == 0) {
4038 var->name);
4050 var->name);
4139 var->data.fb_fetch_output = (strcmp(var->name, "gl_LastFragData") == 0);
4143 (strcmp(var->name, "gl_LastFragDepthARM") == 0 ||
4144 strcmp(var->name, "gl_LastFragStencilARM") == 0)) {
4341 ir_variable *earlier = state->symbols->get_variable(var->name);
4344 !state->symbols->name_declared_this_scope(var->name))) {
4366 !(strcmp(var->name, "gl_LastFragData") == 0 &&
4370 var->name);
4377 * later re-declare the same name as an array of the same
4383 check_builtin_array_max_size(var->name, size, loc, state);
4397 var->name);
4400 && strcmp(var->name, "gl_FragCoord") == 0) {
4421 && (strcmp(var->name, "gl_FrontColor") == 0
4422 || strcmp(var->name, "gl_BackColor") == 0
4423 || strcmp(var->name, "gl_FrontSecondaryColor") == 0
4424 || strcmp(var->name, "gl_BackSecondaryColor") == 0
4425 || strcmp(var->name, "gl_Color") == 0
4426 || strcmp(var->name, "gl_SecondaryColor") == 0)) {
4433 && strcmp(var->name, "gl_FragDepth") == 0) {
4459 strcmp(var->name, "gl_LastFragData") == 0 &&
4474 strcmp(var->name, "gl_Layer") == 0 &&
4480 (strcmp(var->name, "gl_Position") == 0 ||
4481 strcmp(var->name, "gl_PointSize") == 0)) {
4497 "%s must appear before any use", var->name);
4506 _mesa_glsl_error(&loc, state, "`%s' redeclared", var->name);
4535 var->name);
4545 var->name);
4568 var->name, state->has_bindless() ? "atomic" : "opaque");
4577 var->name);
4584 var->name);
4998 earlier->name);
5031 earlier->name);
5036 earlier->name);
5183 * name of a known structure type. This is both invalid and weird.
5282 const char *name;
5289 name = ralloc_asprintf(ctx, "%s_%s", _mesa_shader_stage_to_subroutine_prefix(state->stage), decl->identifier);
5291 identifier = name;
5371 "shader stages only", var->name);
5402 mode, var->name, extra);
5472 check_type->name);
5512 check_type->name);
5569 "type %s", check_type->name);
5727 /* Examine var name here since var may get deleted in the next call */
5728 bool var_is_gl_id = is_gl_identifier(var->name);
5739 "gl_PerVertex", var->name);
5842 * "Within a declaration, the scope of a name starts immediately
5843 * after the initializer if present or immediately after the name
5848 _mesa_glsl_error(&loc, state, "name `%s' already taken in the "
5885 const char *name = NULL;
5888 type = this->type->glsl_type(& name, state);
5891 if (name != NULL) {
5894 name, this->identifier);
5926 _mesa_glsl_error(& loc, state, "formal parameter lacks a name");
6065 const char *const name = identifier;
6090 "function body", name);
6093 validate_identifier(name, this->get_location(), state);
6097 * signatures for functions with the same name.
6111 name, return_type_name);
6123 name);
6132 "function `%s' return type has qualifiers", name);
6144 "sized", name);
6156 "function `%s' return type contains an array", name);
6173 name, state->has_bindless() ? "atomic" : "opaque");
6181 name);
6199 f = state->symbols->get_function(name);
6201 f = new(ctx) ir_function(name);
6204 /* This function name shadows a non-function use of the same name. */
6206 _mesa_glsl_error(&loc, state, "function name `%s' conflicts with "
6207 "non-function", name);
6226 _mesa_glsl_has_builtin_function(state, name)) {
6230 "function `%s' in GLSL ES 3.00", name);
6236 _mesa_glsl_find_builtin_function(state, name, &hir_parameters);
6240 "function `%s' in GLSL ES 1.00", name);
6246 * seen signature for a function with the same name, or, if a match is found,
6257 "qualifiers don't match prototype", name, badvar);
6264 "match prototype", name);
6271 "doesn't match prototype", name);
6277 _mesa_glsl_error(& loc, state, "function `%s' redefined", name);
6294 _mesa_glsl_error(&loc, state, "function `%s' redeclared", name);
6300 if (strcmp(name, "main") == 0) {
6365 if (strcmp(fn->name, decl->identifier))
6433 * the same name.
6435 if (state->symbols->name_declared_this_scope(var->name)) {
6438 _mesa_glsl_error(& loc, state, "parameter `%s' redeclared", var->name);
6458 signature->return_type->name);
6504 state->current_function->return_type->name,
6511 ret_type->name,
6513 state->current_function->return_type->name);
7080 type_a->name, type_b->name);
7425 * must have a declarator. A name given to an embedded struct is
7619 fields[i].name = decl->identifier;
7696 "alignment of %s", field_type->name);
7889 validate_identifier(this->name, loc, state);
7891 type = glsl_type::get_struct_instance(fields, decl_count, this->name);
7893 if (!type->is_anonymous() && !state->symbols->add_type(name, type)) {
7894 const glsl_type *match = state->symbols->get_type(name);
7897 _mesa_glsl_warning(& loc, state, "struct `%s' previously defined", name);
7899 _mesa_glsl_error(& loc, state, "struct `%s' previously defined", name);
7957 if (strcmp(interface_type->fields.structure[length-1].name, v->name) == 0)
8195 * matching; it is a compile-time error to use a block name at global
8196 * scope for anything other than as a block name."
8200 _mesa_glsl_error(&loc, state, "Block name `%s' is "
8214 * Also check that the instance name and array-ness of the redeclaration
8260 "an instance name");
8280 int j = earlier_per_vertex->field_index(fields[i].name);
8344 if (!state->symbols->add_interface(block_type->name, block_type, var_mode)) {
8384 * "If an instance name (instance-name) is used, then it puts all the
8385 * members inside a scope within its own name space, accessed with the
8401 check_builtin_array_max_size(fields[i].name, size, loc, state);
8585 * an instance name.
8592 ralloc_strdup(state, fields[i].name),
8633 /* Examine var name here since var may get deleted in the next call */
8634 bool var_is_gl_id = is_gl_identifier(var->name);
8649 var->name);
8657 if (state->symbols->get_variable(var->name) != NULL)
8658 _mesa_glsl_error(&loc, state, "`%s' redeclared", var->name);
8662 * has an instance name. This is ugly.
8689 "array", fields[i].name);
8729 var->name);
8731 state->symbols->disable_variable(var->name);
8788 var->data.max_array_access, var->name);
8842 var->data.max_array_access, var->name);
8983 if (strcmp(var->name, "gl_FragColor") == 0) {
8992 else if (strcmp(var->name, "gl_FragData") == 0)
8994 else if (strcmp(var->name, "gl_SecondaryFragColorEXT") == 0)
8996 else if (strcmp(var->name, "gl_SecondaryFragDataEXT") == 0)
8998 else if (!is_gl_identifier(var->name)) {
9028 user_defined_fs_output->name);
9044 user_defined_fs_output->name);
9064 * name if the name is associated with a subroutine type."
9070 /* Calculate number of function definitions with the same name */
9076 "definitions with name `%s', which is "
9079 fn->name);
9132 state->symbols->disable_variable(var->name);