Home | History | Annotate | Download | only in glsl

Lines Matching refs:Const

114 apply_implicit_conversion(const glsl_type *to, ir_rvalue * &from,
164 static const struct glsl_type *
169 const glsl_type *type_a = value_a->type;
170 const glsl_type *type_b = value_b->type;
299 const glsl_type *const type =
316 const glsl_type *const type =
335 const glsl_type *const type =
357 static const struct glsl_type *
358 unary_arithmetic_result_type(const struct glsl_type *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,
444 static const struct glsl_type *
445 modulus_result_type(const struct glsl_type *type_a,
446 const struct glsl_type *type_b,
495 static const struct glsl_type *
499 const glsl_type *type_a = value_a->type;
500 const glsl_type *type_b = value_b->type;
550 static const struct glsl_type *
551 shift_result_type(const struct glsl_type *type_a,
552 const struct glsl_type *type_b,
625 const glsl_type *lhs_type, ir_rvalue *rhs,
673 const char *non_lvalue_description,
726 ir_dereference *const d = lhs->as_dereference();
730 ir_variable *const var = d->variable_referenced();
843 const char *field_name = op0->type->fields.structure[i].name;
888 const char *operand_name,
914 check_builtin_array_max_size(const char *name, unsigned size,
918 && (size > state->Const.MaxTextureCoords)) {
926 state->Const.MaxTextureCoords);
929 && size > state->Const.MaxClipPlanes) {
941 state->Const.MaxClipPlanes);
956 constant_one_for_inc_dec(void *ctx, const glsl_type *type)
974 static const int operations[AST_NUM_OPERATORS] = {
1031 const struct glsl_type *type; /* a temporary variable for switch cases */
1213 ir_variable *const tmp = new(ctx) ir_variable(glsl_type::bool_type,
1218 ir_if *const stmt = new(ctx) ir_if(op[0]);
1222 ir_dereference *const then_deref = new(ctx) ir_dereference_variable(tmp);
1223 ir_assignment *const then_assign =
1227 ir_dereference *const else_deref = new(ctx) ir_dereference_variable(tmp);
1228 ir_assignment *const else_assign =
1249 ir_variable *const tmp = new(ctx) ir_variable(glsl_type::bool_type,
1254 ir_if *const stmt = new(ctx) ir_if(op[0]);
1257 ir_dereference *const then_deref = new(ctx) ir_dereference_variable(tmp);
1258 ir_assignment *const then_assign =
1263 ir_dereference *const else_deref = new(ctx) ir_dereference_variable(tmp);
1264 ir_assignment *const else_assign =
1442 ir_variable *const tmp =
1446 ir_if *const stmt = new(ctx) ir_if(op[0]);
1450 ir_dereference *const then_deref =
1452 ir_assignment *const then_assign =
1457 ir_dereference *const else_deref =
1459 ir_assignment *const else_assign =
1531 ir_rvalue *const array = op[0];
1567 ir_constant *const const_index = op[1]->constant_expression_value();
1569 const int idx = const_index->value.i[0];
1570 const char *type_name;
1621 ir_variable *const v = array->whole_variable_referenced();
1836 static const glsl_type *
1837 process_array_type(YYLTYPE *loc, const glsl_type *base, ast_node *array_size,
1856 ir_rvalue *const ir = array_size->hir(& dummy_instructions, state);
1865 ir_constant *const size = ir->constant_expression_value();
1876 /* If the array size is const (and we've verified that
1879 * then either the array size isn't const after all, or
1898 const glsl_type *
1899 ast_type_specifier::glsl_type(const char **name,
1900 struct _mesa_glsl_parse_state *state) const
1902 const struct glsl_type *type;
1917 apply_type_qualifier_to_variable(const struct ast_type_qualifier *qual,
1957 const glsl_type *non_array_type;
2024 const char *const qual_string = (qual->flags.q.origin_upper_left)
2034 const bool global_scope = (state->current_function == NULL);
2036 const char *string = "";
2116 const bool uses_layout = qual->flags.q.pixel_center_integer
2123 const bool uses_deprecated_qualifier = qual->flags.q.attribute
2146 const bool relaxed_layout_qualifier_checking =
2260 const unsigned size = unsigned(var->type->array_size());
2377 ir_dereference *const lhs = new(state) ir_dereference_variable(var);
2381 /* Calculate the constant value if this is a const or uniform
2396 ? "const" : "uniform",
2425 const glsl_type *initializer_type;
2471 const struct glsl_type *decl_type;
2472 const char *type_name = NULL;
2501 ir_variable *const earlier =
2572 const struct glsl_type *var_type;
2605 * "Global variables can only use the qualifiers const,
2609 * Local variables can only use the qualifier const."
2656 const char *mode = NULL;
2657 const char *extra = "";
2707 const glsl_type *check_type = var->type->is_array()
2768 const char *i = this->type->qualifier.interpolation_string();
2770 const char *s;
2793 const char *i = this->type->qualifier.interpolation_string();
2897 * "It is an error to write to a const variable outside of
2903 "const declaration of `%s' must be initialized",
2985 const struct glsl_type *type;
2986 const char *name = NULL;
3144 const char *const name = identifier;
3191 const char *return_type_name;
3192 const glsl_type *return_type =
3232 const char *badvar = sig->qualifiers_match(&hir_parameters);
3318 ir_variable *const var = ((ir_instruction *) iter.get())->as_variable();
3369 ir_rvalue *const ret = opt_return_value->hir(instructions, state);
3378 const glsl_type *const ret_type =
3454 ir_variable *const is_break_var = state->switch_state.is_break_var;
3455 ir_dereference_variable *const deref_is_break_var =
3457 ir_constant *const true_val = new(ctx) ir_constant(true);
3458 ir_assignment *const set_break_var =
3464 ir_loop_jump *const jump =
3487 ir_rvalue *const condition = this->condition->hir(instructions, state);
3505 ir_if *const stmt = new(ctx) ir_if(condition);
3533 ir_rvalue *const test_expression =
3563 ir_rvalue *const is_fallthru_val = new (ctx) ir_constant(false);
3577 ir_rvalue *const is_break_val = new (ctx) ir_constant(false);
3612 ir_rvalue *const test_val =
3656 ir_constant *const false_val = new(state) ir_constant(false);
3657 ir_dereference_variable *const deref_is_fallthru_var =
3659 ir_dereference_variable *const deref_is_break_var =
3661 ir_assignment *const reset_fallthru_on_break =
3668 ir_dereference_variable *const deref_fallthru_guard =
3670 ir_if *const test_fallthru = new(state) ir_if(deref_fallthru_guard);
3702 ir_rvalue *const true_val = new(ctx) ir_constant(true);
3709 ir_rvalue *const label_rval = this->test_value->hir(instructions, state);
3744 ir_rvalue *const test_cond = new(ctx) ir_expression(ir_binop_all_equal,
3784 ir_rvalue *const cond =
3797 ir_rvalue *const not_cond =
3800 ir_if *const if_stmt = new(ctx) ir_if(not_cond);
3802 ir_jump *const break_stmt =
3826 ir_loop *const stmt = new(ctx) ir_loop();
3951 glsl_struct_field *const fields = ralloc_array(state, glsl_struct_field,
3957 const char *type_name;
3970 const glsl_type *decl_type =
3975 const struct glsl_type *field_type = decl_type;
3990 const glsl_type *t =
3997 const glsl_type **s = reralloc(state, state->user_structures,
3998 const glsl_type *,