/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_fs_channel_expressions.cpp | 137 unsigned int i, vector_elements = 1; in visit_leave() local 149 vector_elements = expr->operands[i]->type->vector_elements; in visit_leave() 219 for (i = 0; i < vector_elements; i++) { in visit_leave() 248 for (i = 0; i < vector_elements; i++) { in visit_leave() 266 for (i = 2; i < vector_elements; i++) { in visit_leave() 278 for (i = 0; i < vector_elements; i++) { in visit_leave() 310 for (i = 0; i < vector_elements; i++) { in visit_leave()
|
D | brw_fs_visitor.cpp | 92 int vector_elements = in visit() local 93 ir->type->is_array() ? ir->type->fields.array->vector_elements in visit() 94 : ir->type->vector_elements; in visit() 100 this->outputs[output].reg_offset += vector_elements * i; in visit() 101 this->output_components[output] = vector_elements; in visit() 598 for (int i = 0; i < ir->type->vector_elements; i++) { in visit() 684 ir->write_mask == (1 << ir->lhs->type->vector_elements) - 1))) in try_rewrite_rhs_to_dst() 697 if (ir->lhs->type->vector_elements != modify->regs_written()) in try_rewrite_rhs_to_dst() 735 for (int i = 0; i < ir->lhs->type->vector_elements; i++) { in visit() 762 for (int i = 0; i < ir->coordinate->type->vector_elements; i++) { in emit_texture_gen4() [all …]
|
D | brw_vec4_visitor.cpp | 433 this->swizzle = swizzle_for_size(type->vector_elements); in src_reg() 449 this->writemask = (1 << type->vector_elements) - 1; in dst_reg() 481 for (unsigned int i = 0; i < type->vector_elements; i++) { in setup_uniform_values() 486 for (unsigned int i = type->vector_elements; i < 4; i++) { in setup_uniform_values() 495 this->uniform_vector_size[this->uniforms] = type->vector_elements; in setup_uniform_values() 1028 int vector_elements = ir->operands[0]->type->vector_elements; in visit() local 1030 vector_elements = MAX2(vector_elements, in visit() 1031 ir->operands[1]->type->vector_elements); in visit() 1048 result_dst.writemask = (1 << ir->type->vector_elements) - 1; in visit() 1212 emit_dp(result_dst, op[0], op[1], ir->operands[0]->type->vector_elements); in visit() [all …]
|
D | brw_shader.cpp | 309 for (unsigned i = 0; i < offset->type->vector_elements; i++) in brw_texture_offset() 319 for (unsigned i = 0; i < offset->type->vector_elements; i++) { in brw_texture_offset()
|
D | brw_fs_vector_splitting.cpp | 269 for (unsigned int i = 0; i < ir->lhs->type->vector_elements; i++) { in visit_leave() 373 for (unsigned int i = 0; i < entry->var->type->vector_elements; i++) { in brw_do_vector_splitting()
|
D | brw_lower_texture_gradients.cpp | 112 swizzle_for_size(txs, grad_type->vector_elements))); in visit_leave()
|
/external/mesa3d/src/glsl/ |
D | glsl_types.cpp | 49 glsl_base_type base_type, unsigned vector_elements, 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() 629 && this->vector_elements == desired->vector_elements; in can_implicitly_convert_to() 646 switch (this->vector_elements) { in std140_base_alignment() 699 int r = this->vector_elements; in std140_base_alignment() 758 return this->vector_elements * 4; in std140_size() [all …]
|
D | glsl_types.h | 119 unsigned vector_elements:3; /**< 1, 2, 3, or 4 vector elements. */ member 239 return vector_elements * matrix_columns; in components() 304 return (vector_elements == 1) in is_scalar() 314 return (vector_elements > 1) in is_vector() 436 ? get_instance(base_type, vector_elements, 1) in column_type() 482 glsl_base_type base_type, unsigned vector_elements,
|
D | lower_vector.cpp | 66 for (unsigned i = 0; i < ir->type->vector_elements; i++) { in is_extended_swizzle() 132 assert(expr->type->vector_elements == expr->get_num_operands()); in handle_rvalue() 161 for (unsigned i = 0; i < expr->type->vector_elements; i++) { in handle_rvalue() 197 for (unsigned i = 0; i < expr->type->vector_elements; i++) { in handle_rvalue() 209 assert(assigned == expr->type->vector_elements); in handle_rvalue()
|
D | ir.cpp | 142 const unsigned mask = (1U << v->type->vector_elements) - 1; in whole_variable_written() 170 assert(lhs_components == this->rhs->type->vector_elements); in ir_assignment() 189 this->write_mask = (1U << rhs->type->vector_elements) - 1; in ir_assignment() 283 op0->type->vector_elements, 1); in ir_expression() 292 op0->type->vector_elements, 1); in ir_expression() 298 op0->type->vector_elements, 1); in ir_expression() 305 op0->type->vector_elements, 1); in ir_expression() 382 op0->type->vector_elements, 1); in ir_expression() 646 this->value.f[i * type->vector_elements + i] = value->value.f[0]; in ir_constant() 680 unsigned rows = MIN2(type->vector_elements, value->type->vector_elements); in ir_constant() [all …]
|
D | ast_function.cpp | 539 const int c = component / src->type->column_type()->vector_elements; in dereference_component() 540 const int r = component % src->type->column_type()->vector_elements; in dereference_component() 618 ir->type->vector_elements, in process_array_constructor() 879 if (count < src->type->vector_elements) { in assign_to_matrix_column() 971 type->vector_elements); in emit_inline_matrix_constructor() 978 type->vector_elements); in emit_inline_matrix_constructor() 990 type->vector_elements); in emit_inline_matrix_constructor() 1012 || (src_matrix->type->vector_elements < var->type->vector_elements)) { in emit_inline_matrix_constructor() 1019 (src_matrix->type->vector_elements < var->type->vector_elements) in emit_inline_matrix_constructor() 1059 const unsigned last_row = MIN2(src_matrix->type->vector_elements, in emit_inline_matrix_constructor() [all …]
|
D | ir_validate.cpp | 370 assert(ir->operands[0]->type->vector_elements in visit_leave() 371 == ir->type->vector_elements); in visit_leave() 406 assert(ir->operands[0]->type->vector_elements == in visit_leave() 407 ir->operands[1]->type->vector_elements); in visit_leave() 442 switch (ir->type->vector_elements) { in visit_leave() 487 for (unsigned int i = 0; i < ir->type->vector_elements; i++) { in visit_leave() 488 if (chans[i] >= ir->val->type->vector_elements) { in visit_leave() 554 if (lhs_components != ir->rhs->type->vector_elements) { in visit_enter() 557 lhs_components, ir->rhs->type->vector_elements); in visit_enter()
|
D | lower_vec_index_to_cond_assign.cpp | 108 orig_deref->array->type->vector_elements, in convert_vec_index_to_cond_assign() 112 for (i = 0; i < orig_deref->array->type->vector_elements; i++) { in convert_vec_index_to_cond_assign() 208 orig_deref->array->type->vector_elements, in visit_leave() 212 for (i = 0; i < orig_deref->array->type->vector_elements; i++) { in visit_leave()
|
D | ir_builder.cpp | 63 return assign(lhs, rhs, (1 << lhs.val->type->vector_elements) - 1); in assign() 84 if (a.val->type->vector_elements < components) in swizzle_for_size() 85 components = a.val->type->vector_elements; in swizzle_for_size()
|
D | lower_instructions.cpp | 164 ir->operands[1]->type->vector_elements, in int_div_to_mul_rcp() 175 ir->operands[0]->type->vector_elements, in int_div_to_mul_rcp() 184 ir->type->vector_elements, in int_div_to_mul_rcp()
|
D | opt_algebraic.cpp | 181 expr->type->vector_elements); in swizzle_if_required() 326 for (unsigned c = 0; c < op_const[0]->type->vector_elements; c++) { in handle_expression() 335 for (unsigned c = 0; c < op_const[1]->type->vector_elements; c++) { in handle_expression()
|
D | opt_noop_swizzle.cpp | 63 int elems = swiz->val->type->vector_elements; in handle_rvalue()
|
D | ast_to_hir.cpp | 143 to = glsl_type::get_instance(GLSL_TYPE_FLOAT, from->type->vector_elements, in apply_implicit_conversion() 301 type_a->column_type()->vector_elements, in arithmetic_result_type() 302 type_b->row_type()->vector_elements); in arithmetic_result_type() 318 type_a->column_type()->vector_elements, in arithmetic_result_type() 337 type_b->row_type()->vector_elements, in arithmetic_result_type() 427 type_a->vector_elements != type_b->vector_elements) { in bit_logic_result_type() 482 || (type_a->vector_elements == type_b->vector_elements)) in modulus_result_type() 594 type_a->vector_elements != type_b->vector_elements) { in shift_result_type() 1590 if (array->type->row_type()->vector_elements <= idx) { in hir() 1591 bound = array->type->row_type()->vector_elements; in hir() [all …]
|
D | hir_field_selection.cpp | 53 op->type->vector_elements); in _mesa_ast_field_selection_to_hir()
|
D | ir_constant_expression.cpp | 596 ? 1 : op[0]->type->vector_elements; in constant_expression_value() 597 const unsigned m = op[1]->type->vector_elements; in constant_expression_value() 916 for (unsigned c = 0; c < this->type->vector_elements; c++) { in constant_expression_value() 1060 offset = index * vt->vector_elements; in constant_referenced() 1091 const unsigned mat_idx = column * column_type->vector_elements; in constant_expression_value() 1098 for (unsigned i = 0; i < column_type->vector_elements; i++) in constant_expression_value() 1104 for (unsigned i = 0; i < column_type->vector_elements; i++) in constant_expression_value()
|
D | opt_copy_propagation_elements.cpp | 226 chans = swizzle->type->vector_elements; in handle_rvalue() 236 chans = deref_var->type->vector_elements; in handle_rvalue()
|
D | lower_vec_index_to_swizzle.cpp | 96 (deref->array->type->vector_elements - 1)); in convert_vec_index_to_swizzle()
|
D | linker.cpp | 1557 return this->vector_elements * this->matrix_columns * this->size; in num_components() 1598 unsigned vector_elements; member in tfeedback_decl 1757 this->vector_elements = output_var->type->fields.array->vector_elements; in assign_location() 1773 this->vector_elements = output_var->type->vector_elements; in assign_location() 1870 unsigned num_components = this->vector_elements; in store()
|
/external/mesa3d/src/mesa/program/ |
D | ir_to_mesa.cpp | 77 this->swizzle = swizzle_for_size(type->vector_elements); in src_reg() 651 src.swizzle = swizzle_for_size(type->vector_elements); in get_temp() 985 for (unsigned i = 0; i < ir->type->vector_elements; i++) { in emit_swz() 1084 result_dst.writemask = (1 << ir->type->vector_elements) - 1; in emit_swz() 1141 int vector_elements = ir->operands[0]->type->vector_elements; in visit() local 1143 vector_elements = MAX2(vector_elements, in visit() 1144 ir->operands[1]->type->vector_elements); in visit() 1159 result_dst.writemask = (1 << ir->type->vector_elements) - 1; in visit() 1218 + (ir->operands[0]->type->vector_elements) - 1); in visit() 1272 emit_dp(ir, result_dst, temp, temp, vector_elements); in visit() [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_glsl_to_tgsi.cpp | 107 this->swizzle = swizzle_for_size(type->vector_elements); in st_src_reg() 996 src.swizzle = swizzle_for_size(type->vector_elements); in get_temp() 1221 result_dst.writemask = (1 << ir->type->vector_elements) - 1; in try_emit_mad() 1304 result_dst.writemask = (1 << ir->type->vector_elements) - 1; in try_emit_sat() 1381 int vector_elements = ir->operands[0]->type->vector_elements; in visit() local 1383 vector_elements = MAX2(vector_elements, in visit() 1384 ir->operands[1]->type->vector_elements); in visit() 1399 result_dst.writemask = (1 << ir->type->vector_elements) - 1; in visit() 1551 switch (ir->operands[0]->type->vector_elements) { in visit() 1580 emit_dp(ir, result_dst, temp, temp, vector_elements); in visit() [all …]
|