Home
last modified time | relevance | path

Searched refs:vector_elements (Results 1 – 25 of 45) sorted by relevance

12

/external/mesa3d/src/compiler/glsl/
Dir.cpp96 rhs_swiz.num_components = swiz->val->type->vector_elements; in set_lhs()
137 const unsigned mask = (1U << v->type->vector_elements) - 1; in whole_variable_written()
165 assert(lhs_components == this->rhs->type->vector_elements); in ir_assignment()
184 this->write_mask = (1U << rhs->type->vector_elements) - 1; in ir_assignment()
265 op0->type->vector_elements, 1); in ir_expression()
275 op0->type->vector_elements, 1); in ir_expression()
282 op0->type->vector_elements, 1); in ir_expression()
289 op0->type->vector_elements, 1); in ir_expression()
297 op0->type->vector_elements, 1); in ir_expression()
336 op0->type->vector_elements, 1); in ir_expression()
[all …]
Dlower_instructions.cpp231 ir->operands[1]->type->vector_elements, in int_div_to_mul_rcp()
242 ir->operands[0]->type->vector_elements, in int_div_to_mul_rcp()
251 ir->type->vector_elements, in int_div_to_mul_rcp()
386 const unsigned vec_elem = ir->type->vector_elements; in ldexp_to_arith()
487 const unsigned vec_elem = ir->type->vector_elements; in dldexp_to_arith()
612 const unsigned vec_elem = ir->type->vector_elements; in dfrexp_sig_to_arith()
684 const unsigned vec_elem = ir->type->vector_elements; in dfrexp_exp_to_arith()
822 ir_constant *one = new(ir) ir_constant(1.0, op2->type->vector_elements); in double_lrp()
824 switch (op2->type->vector_elements) { in double_lrp()
829 assert(op0->type->vector_elements == op2->type->vector_elements); in double_lrp()
[all …]
Dlower_vector.cpp70 for (unsigned i = 0; i < ir->type->vector_elements; i++) { in is_extended_swizzle()
136 assert(expr->type->vector_elements == expr->get_num_operands()); in handle_rvalue()
165 for (unsigned i = 0; i < expr->type->vector_elements; i++) { in handle_rvalue()
201 for (unsigned i = 0; i < expr->type->vector_elements; i++) { in handle_rvalue()
213 assert(assigned == expr->type->vector_elements); in handle_rvalue()
Dglsl_to_nir.cpp219 const unsigned rows = ir->type->vector_elements; in constant_copy()
951 instr->num_components = val->type->vector_elements; in visit()
967 instr->num_components = type->vector_elements; in visit()
972 type->vector_elements, bit_size, NULL); in visit()
991 for (unsigned i = 0; i < type->vector_elements; i++) in visit()
995 type->vector_elements, bit_size, NULL); in visit()
996 load_ssbo_compare->dest.write_mask = (1 << type->vector_elements) - 1; in visit()
1041 ir->return_deref->type->vector_elements, 32, NULL); in visit()
1053 instr->num_components = type->vector_elements; in visit()
1058 type->vector_elements, bit_size, NULL); in visit()
[all …]
Dlower_buffer_access.cpp82 writemask_for_size(field_deref->type->vector_elements)); in emit_access()
102 writemask_for_size(element_deref->type->vector_elements)); in emit_access()
121 writemask_for_size(col_deref->type->vector_elements)); in emit_access()
127 deref->type->vector_elements == 2 && in emit_access()
141 deref->type->vector_elements > 2) ? 32 : 16; in emit_access()
147 writemask_for_size(col_deref->type->vector_elements)); in emit_access()
159 is_write ? write_mask : (1 << deref->type->vector_elements) - 1; in emit_access()
205 for (unsigned i = 0; i < deref->type->vector_elements; i++) { in emit_access()
Dlower_packed_varyings.cpp339 assert(rhs->type->vector_elements <= 2); in bitwise_assign_pack()
340 if (rhs->type->vector_elements == 2) { in bitwise_assign_pack()
343 assert(lhs->type->vector_elements == 4); in bitwise_assign_pack()
389 assert(lhs->type->vector_elements <= 2); in bitwise_assign_unpack()
390 if (lhs->type->vector_elements == 2) { in bitwise_assign_unpack()
392 assert(rhs->type->vector_elements == 4); in bitwise_assign_unpack()
475 } else if (rvalue->type->vector_elements * dmul + in lower_rvalue()
493 right_components = rvalue->type->vector_elements - left_components; in lower_rvalue()
526 unsigned components = rvalue->type->vector_elements * dmul; in lower_rvalue()
700 if (type->vector_elements == 4 && !type->is_64bit()) in needs_lowering()
Dast_function.cpp871 from->type->vector_elements, in implicitly_convert_component()
924 const int c = component / src->type->column_type()->vector_elements; in dereference_component()
925 const int r = component % src->type->column_type()->vector_elements; in dereference_component()
956 if (constructor_type->vector_elements <= 1) { in process_vec_mat_constructor()
968 constructor_type->vector_elements != parameter_count) in process_vec_mat_constructor()
973 constructor_type->vector_elements); in process_vec_mat_constructor()
1366 if (count < src->type->vector_elements) { in assign_to_matrix_column()
1463 type->vector_elements); in emit_inline_matrix_constructor()
1471 type->vector_elements); in emit_inline_matrix_constructor()
1484 type->vector_elements); in emit_inline_matrix_constructor()
[all …]
Dir_validate.cpp399 assert(ir->operands[0]->type->vector_elements == ir->type->vector_elements); in visit_leave()
525 assert(ir->operands[0]->type->vector_elements in visit_leave()
526 == ir->type->vector_elements); in visit_leave()
561 assert(ir->operands[0]->type->vector_elements == in visit_leave()
562 ir->operands[1]->type->vector_elements); in visit_leave()
636 assert(ir->type->vector_elements == ir->operands[0]->type->vector_elements); in visit_leave()
674 switch (ir->type->vector_elements) { in visit_leave()
719 for (unsigned int i = 0; i < ir->type->vector_elements; i++) { in visit_leave()
720 if (chans[i] >= ir->val->type->vector_elements) { in visit_leave()
819 if (lhs_components != ir->rhs->type->vector_elements) { in visit_enter()
[all …]
Dast_array_index.cpp185 if (array->type->row_type()->vector_elements <= idx) { in _mesa_ast_array_index_to_hir()
187 bound = array->type->row_type()->vector_elements; in _mesa_ast_array_index_to_hir()
190 if (array->type->vector_elements <= idx) { in _mesa_ast_array_index_to_hir()
192 bound = array->type->vector_elements; in _mesa_ast_array_index_to_hir()
Dopt_algebraic.cpp153 for (int c = 0; c < ir->type->vector_elements; c++) { in is_less_than_one()
158 return (component == ir->type->vector_elements); in is_less_than_one()
170 for (int c = 0; c < ir->type->vector_elements; c++) { in is_greater_than_zero()
175 return (component == ir->type->vector_elements); in is_greater_than_zero()
306 expr->type->vector_elements); in swizzle_if_required()
645 for (unsigned c = 0; c < op_const[i]->type->vector_elements; c++) { in handle_expression()
654 if (count >= op_const[i]->type->vector_elements) in handle_expression()
938 unsigned op2_components = ir->operands[2]->type->vector_elements; in handle_expression()
Dir_builder.cpp64 return assign(lhs, rhs, (1 << lhs.val->type->vector_elements) - 1); in assign()
76 return assign(lhs, rhs, condition, (1 << lhs.val->type->vector_elements) - 1); in assign()
104 if (a.val->type->vector_elements < components) in swizzle_for_size()
105 components = a.val->type->vector_elements; in swizzle_for_size()
269 if (a.val->type->vector_elements == 1) in dot()
Dlink_varyings.h153 return this->vector_elements * this->matrix_columns * this->size * in num_components()
249 unsigned vector_elements; variable
Dir_constant_expression.cpp425 offset = index * vt->vector_elements; in constant_referenced()
747 const unsigned mat_idx = column * column_type->vector_elements; in constant_expression_value()
754 for (unsigned i = 0; i < column_type->vector_elements; i++) in constant_expression_value()
760 for (unsigned i = 0; i < column_type->vector_elements; i++) in constant_expression_value()
766 for (unsigned i = 0; i < column_type->vector_elements; i++) in constant_expression_value()
Dlower_vec_index_to_cond_assign.cpp119 orig_vector->type->vector_elements, in convert_vec_index_to_cond_assign()
123 for (i = 0; i < orig_vector->type->vector_elements; i++) { in convert_vec_index_to_cond_assign()
Dopt_rebalance_tree.cpp292 MAX2(expr->operands[0]->type->vector_elements, in update_types()
293 expr->operands[1]->type->vector_elements), in update_types()
Dbuiltin_functions.cpp613 ir_constant *imm(float f, unsigned vector_elements=1);
614 ir_constant *imm(bool b, unsigned vector_elements=1);
615 ir_constant *imm(int i, unsigned vector_elements=1);
616 ir_constant *imm(unsigned u, unsigned vector_elements=1);
617 ir_constant *imm(double d, unsigned vector_elements=1);
3177 builtin_builder::imm(bool b, unsigned vector_elements) in imm() argument
3179 return new(mem_ctx) ir_constant(b, vector_elements); in imm()
3183 builtin_builder::imm(float f, unsigned vector_elements) in imm() argument
3185 return new(mem_ctx) ir_constant(f, vector_elements); in imm()
3189 builtin_builder::imm(int i, unsigned vector_elements) in imm() argument
[all …]
Dopt_noop_swizzle.cpp62 int elems = swiz->val->type->vector_elements; in handle_rvalue()
Dlower_vec_index_to_swizzle.cpp88 (int) expr->operands[0]->type->vector_elements - 1); in handle_rvalue()
/external/mesa3d/src/compiler/
Dglsl_types.cpp49 glsl_base_type base_type, unsigned vector_elements, in glsl_type() argument
55 vector_elements(vector_elements), matrix_columns(matrix_columns), in glsl_type()
75 assert((vector_elements == 0) == (matrix_columns == 0)); in glsl_type()
100 matrix_columns = vector_elements = 0; in glsl_type()
102 matrix_columns = vector_elements = 1; in glsl_type()
112 vector_elements(0), matrix_columns(0), in glsl_type()
142 vector_elements(0), matrix_columns(0), in glsl_type()
169 vector_elements(0), matrix_columns(0), in glsl_type()
201 vector_elements(1), matrix_columns(1), in glsl_type()
418 vector_elements(0), matrix_columns(0), in glsl_type()
[all …]
Dglsl_types.h178 uint8_t vector_elements; /**< 1, 2, 3, or 4 vector elements. */ member
313 return vector_elements * matrix_columns; in components()
435 return (vector_elements == 1) in is_scalar()
445 return (vector_elements > 1) in is_vector()
509 return is_64bit() && vector_elements > 2; in is_dual_slot()
707 ? get_instance(base_type, vector_elements, 1) in column_type()
799 glsl_base_type base_type, unsigned vector_elements,
Dnir_types.cpp84 return type->vector_elements; in glsl_get_vector_elements()
362 type->vector_elements); in glsl_transposed_type()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_fs_channel_expressions.cpp153 unsigned int i, vector_elements = 1; in visit_leave() local
165 vector_elements = expr->operands[i]->type->vector_elements; in visit_leave()
267 for (i = 0; i < vector_elements; i++) { in visit_leave()
303 for (i = 0; i < vector_elements; i++) { in visit_leave()
316 for (i = 0; i < vector_elements; i++) { in visit_leave()
341 for (i = 0; i < vector_elements; i++) { in visit_leave()
379 for (i = 0; i < vector_elements; i++) { in visit_leave()
393 for (i = 0; i < vector_elements; i++) { in visit_leave()
/external/mesa3d/src/mesa/program/
Dir_to_mesa.cpp75 this->swizzle = swizzle_for_size(type->vector_elements); in src_reg()
524 if (type->vector_elements > 2) in type_size()
529 if (type->vector_elements > 2) in type_size()
582 src.swizzle = swizzle_for_size(type->vector_elements); in get_temp()
824 for (unsigned i = 0; i < ir->type->vector_elements; i++) { in emit_swz()
923 result_dst.writemask = (1 << ir->type->vector_elements) - 1; in emit_swz()
1017 int vector_elements = ir->operands[0]->type->vector_elements; in visit() local
1019 vector_elements = MAX2(vector_elements, in visit()
1020 ir->operands[1]->type->vector_elements); in visit()
1035 result_dst.writemask = (1 << ir->type->vector_elements) - 1; in visit()
[all …]
/external/mesa3d/src/mesa/state_tracker/
Dst_glsl_types.cpp56 if (type->vector_elements <= 2 || is_vs_input) in st_glsl_attrib_type_size()
64 if (type->vector_elements <= 2 || is_vs_input) in st_glsl_attrib_type_size()
Dst_glsl_to_tgsi.cpp78 num_elements = type->vector_elements; in swizzle_for_type()
1268 src.swizzle = swizzle_for_size(type->vector_elements); in get_temp()
1440 result_dst.writemask = (1 << ir->type->vector_elements) - 1; in try_emit_mad()
1562 int vector_elements = ir->operands[0]->type->vector_elements; in visit_expression() local
1564 vector_elements = MAX2(vector_elements, in visit_expression()
1565 ir->operands[1]->type->vector_elements); in visit_expression()
1580 result_dst.writemask = (1 << ir->type->vector_elements) - 1; in visit_expression()
1761 switch (ir->operands[0]->type->vector_elements) { in visit_expression()
1790 emit_dp(ir, result_dst, temp, temp, vector_elements); in visit_expression()
1824 switch (ir->operands[0]->type->vector_elements) { in visit_expression()
[all …]

12