Lines Matching defs:glsl_type
114 apply_implicit_conversion(const glsl_type *to, ir_rvalue * &from,
143 to = glsl_type::get_instance(GLSL_TYPE_FLOAT, from->type->vector_elements,
164 static const struct glsl_type *
169 const glsl_type *type_a = value_a->type;
170 const glsl_type *type_b = value_b->type;
181 return glsl_type::error_type;
194 return glsl_type::error_type;
211 return glsl_type::error_type;
254 return glsl_type::error_type;
299 const glsl_type *const type =
300 glsl_type::get_instance(type_a->base_type,
303 assert(type != glsl_type::error_type);
316 const glsl_type *const type =
317 glsl_type::get_instance(type_a->base_type,
320 assert(type != glsl_type::error_type);
335 const glsl_type *const type =
336 glsl_type::get_instance(type_a->base_type,
339 assert(type != glsl_type::error_type);
346 return glsl_type::error_type;
353 return glsl_type::error_type;
357 static const struct glsl_type *
358 unary_arithmetic_result_type(const struct glsl_type *type,
372 return glsl_type::error_type;
382 * glsl_type::error_type.
387 static const struct glsl_type *
388 bit_logic_result_type(const struct glsl_type *type_a,
389 const struct glsl_type *type_b,
395 return glsl_type::error_type;
407 return glsl_type::error_type;
412 return glsl_type::error_type;
421 return glsl_type::error_type;
430 return glsl_type::error_type;
444 static const struct glsl_type *
445 modulus_result_type(const struct glsl_type *type_a,
446 const struct glsl_type *type_b,
453 return glsl_type::error_type;
463 return glsl_type::error_type;
467 return glsl_type::error_type;
472 return glsl_type::error_type;
491 return glsl_type::error_type;
495 static const struct glsl_type *
499 const glsl_type *type_a = value_a->type;
500 const glsl_type *type_b = value_b->type;
514 return glsl_type::error_type;
526 return glsl_type::error_type;
533 return glsl_type::error_type;
538 return glsl_type::bool_type;
545 * glsl_type::error_type.
550 static const struct glsl_type *
551 shift_result_type(const struct glsl_type *type_a,
552 const struct glsl_type *type_b,
558 return glsl_type::error_type;
570 return glsl_type::error_type;
576 return glsl_type::error_type;
586 return glsl_type::error_type;
598 return glsl_type::error_type;
625 const glsl_type *lhs_type, ir_rvalue *rhs,
741 var->type = glsl_type::get_array_instance(lhs->type->element_type(),
956 constant_one_for_inc_dec(void *ctx, const glsl_type *type)
1031 const struct glsl_type *type; /* a temporary variable for switch cases */
1169 assert(result->type == glsl_type::bool_type);
1198 type = error_emitted ? glsl_type::error_type : op[0]->type;
1213 ir_variable *const tmp = new(ctx) ir_variable(glsl_type::bool_type,
1249 ir_variable *const tmp = new(ctx) ir_variable(glsl_type::bool_type,
1286 result = new(ctx) ir_expression(operations[this->oper], glsl_type::bool_type,
1294 result = new(ctx) ir_expression(operations[this->oper], glsl_type::bool_type,
1417 type = glsl_type::error_type;
1682 result->type = glsl_type::error_type;
1836 static const glsl_type *
1837 process_array_type(YYLTYPE *loc, const glsl_type *base, ast_node *array_size,
1851 return glsl_type::error_type;
1894 return glsl_type::get_array_instance(base, length);
1898 const glsl_type *
1899 ast_type_specifier::glsl_type(const char **name,
1902 const struct glsl_type *type;
1943 var->type = glsl_type::error_type;
1957 const glsl_type *non_array_type;
1965 var->type = glsl_type::error_type;
2425 const glsl_type *initializer_type;
2471 const struct glsl_type *decl_type;
2540 decl_type = this->type->specifier->glsl_type(& type_name, state);
2572 const struct glsl_type *var_type;
2707 const glsl_type *check_type = var->type->is_array()
2985 const struct glsl_type *type;
2989 type = this->type->specifier->glsl_type(& name, state);
3002 type = glsl_type::error_type;
3031 /* This only handles "vec4 foo[..]". The earlier specifier->glsl_type(...)
3041 type = glsl_type::error_type;
3062 type = glsl_type::error_type;
3082 type = glsl_type::error_type;
3192 const glsl_type *return_type =
3193 this->return_type->specifier->glsl_type(& return_type_name, state);
3200 return_type = glsl_type::error_type;
3378 const glsl_type *const ret_type =
3379 (ret == NULL) ? glsl_type::void_type : ret->type;
3565 new(ctx) ir_variable(glsl_type::bool_type,
3578 state->switch_state.is_break_var = new(ctx) ir_variable(glsl_type::bool_type,
3970 const glsl_type *decl_type =
3971 decl_list->type->specifier->glsl_type(& type_name, state);
3975 const struct glsl_type *field_type = decl_type;
3982 ? field_type : glsl_type::error_type;
3990 const glsl_type *t =
3991 glsl_type::get_record_instance(fields, decl_count, this->name);
3997 const glsl_type **s = reralloc(state, state->user_structures,
3998 const glsl_type *,