/third_party/mesa3d/src/compiler/glsl/ |
D | ir.cpp | 99 rhs_swiz.num_components = swiz->val->type->vector_elements; in set_lhs() 140 const unsigned mask = (1U << v->type->vector_elements) - 1; in whole_variable_written() 161 assert(util_bitcount(write_mask) == this->rhs->type->vector_elements); in ir_assignment() 177 this->write_mask = (1U << rhs->type->vector_elements) - 1; in ir_assignment() 270 op0->type->vector_elements, 1); in ir_expression() 283 op0->type->vector_elements, 1); in ir_expression() 290 op0->type->vector_elements, 1); in ir_expression() 295 op0->type->vector_elements, 1); in ir_expression() 301 op0->type->vector_elements, 1); in ir_expression() 305 op0->type->vector_elements, 1); in ir_expression() [all …]
|
D | lower_instructions.cpp | 124 unsigned vector_elements=1); 211 const unsigned vec_elem = ir->type->vector_elements; in ldexp_to_arith() 334 const unsigned vec_elem = ir->type->vector_elements; in dldexp_to_arith() 460 const unsigned vec_elem = ir->type->vector_elements; in dfrexp_sig_to_arith() 533 const unsigned vec_elem = ir->type->vector_elements; in dfrexp_exp_to_arith() 657 ir_constant *one = new(ir) ir_constant(1.0, op2->type->vector_elements); in double_lrp() 659 switch (op2->type->vector_elements) { in double_lrp() 664 assert(op0->type->vector_elements == op2->type->vector_elements); in double_lrp() 671 ir->operands[0] = swizzle(op2, swizval, op0->type->vector_elements); in double_lrp() 686 ir_constant *zero = new(ir) ir_constant(0.0, ir->operands[0]->type->vector_elements); in dceil_to_dfrac() [all …]
|
D | ir_constant_expression.cpp | 519 offset = index * vt->vector_elements; in constant_referenced() 716 op[operand]->type->vector_elements, in constant_expression_value() 731 op[operand]->type->vector_elements, in constant_expression_value() 746 op[operand]->type->vector_elements, in constant_expression_value() 767 return_type->vector_elements, in constant_expression_value() 774 return_type->vector_elements, in constant_expression_value() 781 return_type->vector_elements, in constant_expression_value() 974 const unsigned mat_idx = column * column_type->vector_elements; in constant_expression_value() 980 for (unsigned i = 0; i < column_type->vector_elements; i++) in constant_expression_value() 986 for (unsigned i = 0; i < column_type->vector_elements; i++) in constant_expression_value() [all …]
|
D | glsl_to_nir.cpp | 324 const unsigned rows = ir->type->vector_elements; in constant_copy() 760 func->params[np].num_components = param->type->vector_elements; in create_function() 916 unsigned pow2_components = util_next_power_of_two(type->vector_elements); in intrinsic_set_std430_align() 1257 assert(swizzle && swizzle->type->vector_elements == 1); in visit() 1288 ir->return_deref->type->vector_elements, 64, NULL); in visit() 1291 ir->return_deref->type->vector_elements, 32, NULL); in visit() 1374 num_components = dest_type->vector_elements + 1; in visit() 1376 num_components = ir->return_deref->type->vector_elements; in visit() 1497 instr->num_components = val->type->vector_elements; in visit() 1510 instr->num_components = type->vector_elements; in visit() [all …]
|
D | ir_validate.cpp | 610 assert(ir->operands[0]->type->vector_elements == ir->type->vector_elements); in visit_leave() 751 assert(ir->operands[0]->type->vector_elements == in visit_leave() 752 ir->type->vector_elements); in visit_leave() 792 assert(ir->operands[0]->type->vector_elements in visit_leave() 793 == ir->type->vector_elements); in visit_leave() 828 assert(ir->operands[0]->type->vector_elements == in visit_leave() 829 ir->operands[1]->type->vector_elements); in visit_leave() 908 assert(ir->type->vector_elements == ir->operands[0]->type->vector_elements); in visit_leave() 945 switch (ir->type->vector_elements) { in visit_leave() 997 for (unsigned int i = 0; i < ir->type->vector_elements; i++) { in visit_leave() [all …]
|
D | ast_function.cpp | 1111 from->type->vector_elements, in implicitly_convert_component() 1164 const int c = component / src->type->column_type()->vector_elements; in dereference_component() 1165 const int r = component % src->type->column_type()->vector_elements; in dereference_component() 1196 if (constructor_type->vector_elements <= 1) { in process_vec_mat_constructor() 1208 constructor_type->vector_elements != parameter_count) in process_vec_mat_constructor() 1213 constructor_type->vector_elements); in process_vec_mat_constructor() 1610 if (count < src->type->vector_elements) { in assign_to_matrix_column() 1705 type->vector_elements); in emit_inline_matrix_constructor() 1713 type->vector_elements); in emit_inline_matrix_constructor() 1726 type->vector_elements); in emit_inline_matrix_constructor() [all …]
|
D | ast_array_index.cpp | 185 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()
|
D | lower_vector_derefs.cpp | 104 for (unsigned i = 0; i < new_lhs->type->vector_elements; i++) { in visit_enter() 135 ir->write_mask = (1 << new_lhs->type->vector_elements) - 1; in visit_enter() 141 if (index >= new_lhs->type->vector_elements) { in visit_enter()
|
D | lower_int64.cpp | 218 for (i = 0; i < val->type->vector_elements; i++) { in expand_source() 244 for (unsigned i = 0; i < type->vector_elements; i++) { in compact_destination() 274 if (ir->operands[i]->type->vector_elements > source_components) in lower_op_to_function_call() 275 source_components = ir->operands[i]->type->vector_elements; in lower_op_to_function_call()
|
D | ir.h | 1617 num_operands = this->type->vector_elements; in init_num_operands() 2231 ir_constant(bool b, unsigned vector_elements=1); 2232 ir_constant(int16_t i16, unsigned vector_elements=1); 2233 ir_constant(uint16_t u16, unsigned vector_elements=1); 2234 ir_constant(unsigned int u, unsigned vector_elements=1); 2235 ir_constant(int i, unsigned vector_elements=1); 2236 ir_constant(float16_t f16, unsigned vector_elements=1); 2237 ir_constant(float f, unsigned vector_elements=1); 2238 ir_constant(double d, unsigned vector_elements=1); 2239 ir_constant(uint64_t u64, unsigned vector_elements=1); [all …]
|
D | opt_algebraic.cpp | 154 for (int c = 0; c < ir->type->vector_elements; c++) { in is_less_than_one() 159 return (component == ir->type->vector_elements); in is_less_than_one() 171 for (int c = 0; c < ir->type->vector_elements; c++) { in is_greater_than_zero() 176 return (component == ir->type->vector_elements); in is_greater_than_zero() 309 expr->type->vector_elements); in swizzle_if_required() 686 for (unsigned c = 0; c < op_const[i]->type->vector_elements; c++) { in handle_expression() 695 if (count >= op_const[i]->type->vector_elements) in handle_expression() 978 unsigned op2_components = ir->operands[2]->type->vector_elements; in handle_expression()
|
D | lower_vector_insert.cpp | 76 if (index >= expr->operands[0]->type->vector_elements) { in handle_rvalue() 133 for (unsigned i = 0; i < expr->type->vector_elements; i++) { in handle_rvalue()
|
D | ir_builder.cpp | 51 return assign(lhs, rhs, (1 << lhs.val->type->vector_elements) - 1); in assign() 91 if (a.val->type->vector_elements < components) in swizzle_for_size() 92 components = a.val->type->vector_elements; in swizzle_for_size() 256 if (a.val->type->vector_elements == 1) in dot()
|
D | opt_rebalance_tree.cpp | 292 MAX2(expr->operands[0]->type->vector_elements, in update_types() 293 expr->operands[1]->type->vector_elements), in update_types()
|
D | gl_nir_link_varyings.h | 172 unsigned vector_elements; member
|
D | lower_vec_index_to_swizzle.cpp | 89 (int) expr->operands[0]->type->vector_elements - 1); in handle_rvalue()
|
D | hir_field_selection.cpp | 62 op->type->vector_elements); in _mesa_ast_field_selection_to_hir()
|
D | builtin_functions.cpp | 1018 ir_constant *imm(float f, unsigned vector_elements=1); 1019 ir_constant *imm(bool b, unsigned vector_elements=1); 1020 ir_constant *imm(int i, unsigned vector_elements=1); 1021 ir_constant *imm(unsigned u, unsigned vector_elements=1); 1022 ir_constant *imm(double d, unsigned vector_elements=1); 5657 builtin_builder::imm(bool b, unsigned vector_elements) in imm() argument 5659 return new(mem_ctx) ir_constant(b, vector_elements); in imm() 5663 builtin_builder::imm(float f, unsigned vector_elements) in imm() argument 5665 return new(mem_ctx) ir_constant(f, vector_elements); in imm() 5669 builtin_builder::imm(int i, unsigned vector_elements) in imm() argument [all …]
|
/third_party/mesa3d/src/compiler/ |
D | glsl_types.cpp | 47 glsl_base_type base_type, unsigned vector_elements, in glsl_type() argument 55 vector_elements(vector_elements), matrix_columns(matrix_columns), in glsl_type() 79 assert((vector_elements == 0) == (matrix_columns == 0)); in glsl_type() 102 matrix_columns = vector_elements = 1; in glsl_type() 112 vector_elements(0), matrix_columns(0), in glsl_type() 145 vector_elements(0), matrix_columns(0), in glsl_type() 170 vector_elements(0), matrix_columns(0), in glsl_type() 201 vector_elements(1), matrix_columns(1), in glsl_type() 441 return get_instance(this->base_type, this->vector_elements, in get_bare_type() 480 this->vector_elements, in get_float16_type() [all …]
|
D | glsl_types.h | 334 uint8_t vector_elements; /**< 1, 2, 3, or 4 vector elements. */ 521 return vector_elements * matrix_columns; in components() 727 return (vector_elements == 1) in is_scalar() 737 return (vector_elements > 1) in is_vector() 907 return is_64bit() && vector_elements > 2; in is_dual_slot() 1164 return get_instance(base_type, vector_elements, 1, in column_type() 1172 return get_instance(base_type, vector_elements, 1, in column_type() 1298 glsl_base_type base_type, unsigned vector_elements,
|
D | nir_types.cpp | 153 return type->vector_elements; in glsl_get_vector_elements() 643 mat->vector_elements, in glsl_explicit_matrix_type() 735 type->vector_elements); in glsl_transposed_type() 890 *size = 16 * (type->matrix_columns - 1) + N * type->vector_elements; in glsl_get_vec4_size_align_bytes()
|
/third_party/mesa3d/src/compiler/glsl/tests/ |
D | lower_int64_test.cpp | 105 for (int i = 0; i < type->vector_elements; i++) { in check_expanded_source() 118 for (int i = type->vector_elements; i < 4; i++) { in check_expanded_source() 170 for (unsigned i = 0; i < type->vector_elements; i++) { in check_instructions() 410 for (unsigned i = 0; i < type->vector_elements; i++) { in TEST_F() 436 for (unsigned i = 0; i < type->vector_elements; i++) { in TEST_F()
|
/third_party/skia/third_party/externals/spirv-cross/ |
D | spirv_common.hpp | 1308 …SPIRConstant(TypeID constant_type_, const SPIRConstant *const *vector_elements, uint32_t num_eleme… in SPIRConstant() 1313 bool matrix = vector_elements[0]->m.c[0].vecsize > 1; in SPIRConstant() 1321 m.c[i] = vector_elements[i]->m.c[0]; in SPIRConstant() 1322 if (vector_elements[i]->specialization) in SPIRConstant() 1323 m.id[i] = vector_elements[i]->self; in SPIRConstant() 1333 m.c[0].r[i] = vector_elements[i]->m.c[0].r[0]; in SPIRConstant() 1334 if (vector_elements[i]->specialization) in SPIRConstant() 1335 m.c[0].id[i] = vector_elements[i]->self; in SPIRConstant()
|
/third_party/mesa3d/src/mesa/main/ |
D | uniform_query.cpp | 349 unsigned components = uni->type->vector_elements; in _mesa_get_uniform() 837 const unsigned components = uni->type->vector_elements; in _mesa_propagate_uniforms_to_driver_storage() 960 dmul = storage->type->vector_elements * sizeof(float); in associate_uniform_storage() 967 if (storage->type->vector_elements > 2) in associate_uniform_storage() 978 if (storage->type->vector_elements > 2) in associate_uniform_storage() 989 if (storage->type->vector_elements > 2) in associate_uniform_storage() 1057 storage->type->vector_elements * in associate_uniform_storage() 1161 const unsigned components = uni->type->vector_elements; in validate_uniform() 1470 const unsigned components = uni->type->vector_elements; in _mesa_uniform() 1875 const unsigned components = uni->type->vector_elements; in _mesa_uniform_matrix() [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/nir/ |
D | nir_to_tgsi_info.c | 617 unsigned vector_elements = glsl_get_vector_elements(glsl_without_array(variable->type)); in nir_tgsi_scan_shader() local 618 if (vector_elements) in nir_tgsi_scan_shader() 619 num_components = vector_elements; in nir_tgsi_scan_shader()
|