Home
last modified time | relevance | path

Searched refs:matrix_columns (Results 1 – 18 of 18) sorted by relevance

/external/mesa3d/src/glsl/
Dlower_mat_op_to_vec.cpp129 for (b_col = 0; b_col < b->type->matrix_columns; b_col++) { in do_mul_mat_mat()
136 for (i = 1; i < a->type->matrix_columns; i++) { in do_mul_mat_mat()
167 for (i = 1; i < a->type->matrix_columns; i++) { in do_mul_mat_vec()
188 for (i = 0; i < b->type->matrix_columns; i++) { in do_mul_vec_mat()
213 for (i = 0; i < a->type->matrix_columns; i++) { in do_mul_mat_scalar()
251 const unsigned columns = a->type->matrix_columns; in do_equal_mat_mat()
291 columns = expr->operands[i]->type->matrix_columns; in has_matrix_operand()
304 unsigned int i, matrix_columns = 1; in visit_leave() local
310 if (!has_matrix_operand(orig_expr, matrix_columns)) in visit_leave()
355 for (i = 0; i < matrix_columns; i++) { in visit_leave()
[all …]
Dglsl_types.h120 unsigned matrix_columns:3; /**< 1, 2, 3, or 4 matrix columns. */ member
239 return vector_elements * matrix_columns; in components()
315 && (matrix_columns == 1) in is_vector()
326 return (matrix_columns > 1) && (base_type == GLSL_TYPE_FLOAT); in is_matrix()
422 ? get_instance(base_type, matrix_columns, 1) in row_type()
483 unsigned matrix_columns, const char *name);
Dglsl_types.cpp50 unsigned matrix_columns, const char *name) : in glsl_type() argument
55 vector_elements(vector_elements), matrix_columns(matrix_columns), in glsl_type()
62 assert((vector_elements == 0) == (matrix_columns == 0)); in glsl_type()
73 vector_elements(0), matrix_columns(0), in glsl_type()
86 vector_elements(0), matrix_columns(0), in glsl_type()
369 vector_elements(0), matrix_columns(0), in glsl_type()
623 if (this->matrix_columns > 1 || desired->matrix_columns > 1) in can_implicitly_convert_to()
698 int c = this->matrix_columns; in std140_base_alignment()
795 element_type->matrix_columns, 1); in std140_size()
800 array_len *= element_type->matrix_columns; in std140_size()
Dir_set_program_inouts.cpp114 ir->type->length * ir->type->fields.array->matrix_columns, in visit()
117 mark(this->prog, ir->var, 0, ir->type->matrix_columns, in visit()
141 width = deref_var->type->fields.array->matrix_columns; in visit_enter()
Dast_function.cpp619 ir->type->matrix_columns); in process_array_constructor()
970 const unsigned cols_to_init = MIN2(type->matrix_columns, in emit_inline_matrix_constructor()
984 for (unsigned i = cols_to_init; i < type->matrix_columns; i++) { in emit_inline_matrix_constructor()
1011 if ((src_matrix->type->matrix_columns < var->type->matrix_columns) in emit_inline_matrix_constructor()
1020 ? 0 : src_matrix->type->matrix_columns; in emit_inline_matrix_constructor()
1023 for (/* empty */; col < var->type->matrix_columns; col++) { in emit_inline_matrix_constructor()
1061 const unsigned last_col = MIN2(src_matrix->type->matrix_columns, in emit_inline_matrix_constructor()
1062 var->type->matrix_columns); in emit_inline_matrix_constructor()
1096 const unsigned cols = type->matrix_columns; in emit_inline_matrix_constructor()
1426 for (int i = 0; i < matrix->type->matrix_columns; i++) { in hir()
[all …]
Dlower_instructions.cpp165 ir->operands[1]->type->matrix_columns); in int_div_to_mul_rcp()
176 ir->operands[0]->type->matrix_columns); in int_div_to_mul_rcp()
185 ir->type->matrix_columns); in int_div_to_mul_rcp()
Dlinker.cpp249 return t->matrix_columns; in count_attribute_slots()
1557 return this->vector_elements * this->matrix_columns * this->size; in num_components()
1604 unsigned matrix_columns; member in tfeedback_decl
1732 output_var->type->fields.array->matrix_columns; in assign_location()
1758 this->matrix_columns = matrix_cols; in assign_location()
1774 this->matrix_columns = output_var->type->matrix_columns; in assign_location()
1824 *count += translated_size * this->matrix_columns; in accumulate_num_outputs()
1869 for (unsigned v = 0; v < this->matrix_columns; ++v) { in store()
1883 this->location + v + index * this->matrix_columns; in store()
1989 * output_var->type->fields.array->matrix_columns; in assign_varying_location()
[all …]
Dir.cpp645 for (unsigned i = 0; i < type->matrix_columns; i++) in ir_constant()
679 unsigned cols = MIN2(type->matrix_columns, value->type->matrix_columns); in ir_constant()
690 for (unsigned i = cols; i < type->matrix_columns; i++) in ir_constant()
Dlower_ubo_reference.cpp246 for (unsigned i = 0; i < deref->type->matrix_columns; i++) { in emit_ubo_loads()
Dopt_array_splitting.cpp59 this->size = var->type->matrix_columns; in variable_entry()
Dlower_variable_index_to_cond_assign.cpp397 : orig_deref->array->type->matrix_columns; in convert_dereference_array()
Dir_constant_expression.cpp598 const unsigned p = op[1]->type->matrix_columns; in constant_expression_value()
Dast_to_hir.cpp144 from->type->matrix_columns); in apply_implicit_conversion()
/external/mesa3d/src/mesa/main/
Duniform_query.cpp480 const unsigned vectors = MAX2(1, uni->type->matrix_columns); in _mesa_propagate_uniforms_to_driver_storage()
853 vectors = uni->type->matrix_columns; in _mesa_uniform_matrix()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_vec4_visitor.cpp375 return type->matrix_columns; in type_size()
469 for (unsigned int i = 0; i < type->matrix_columns; i++) { in setup_uniform_values()
1567 for (int i = 0; i < type->matrix_columns; i++) { in emit_block_move()
1754 for (int i = 0; i < ir->type->matrix_columns; i++) { in emit_constant_values()
Dbrw_fs.cpp516 for (unsigned int i = 0; i < type->matrix_columns; i++) { in setup_uniform_values()
694 for (unsigned int j = 0; j < type->matrix_columns; j++) { in emit_general_interpolation()
/external/mesa3d/src/mesa/program/
Dir_to_mesa.cpp603 return type->matrix_columns; in type_size()
1914 for (i = 0; i < ir->type->matrix_columns; i++) { in visit()
2510 columns = storage->type->matrix_columns; in _mesa_associate_uniform_storage()
/external/mesa3d/src/mesa/state_tracker/
Dst_glsl_to_tgsi.cpp948 return type->matrix_columns; in type_size()
2381 for (i = 0; i < ir->type->matrix_columns; i++) { in visit()
2971 element_type->matrix_columns, in set_uniform_initializer()
2975 _mesa_uniform(ctx, shader_program, loc, element_type->matrix_columns, in set_uniform_initializer()