Home
last modified time | relevance | path

Searched refs:num_components (Results 1 - 25 of 400) sorted by relevance

12345678910>>...16

/third_party/mesa3d/src/compiler/nir/
H A Dnir_opt_shrink_vectors.c65 if (def->num_components == 1) in shrink_dest_to_read_mask()
82 assert(rounded <= def->num_components); in shrink_dest_to_read_mask()
85 if (def->num_components > last_bit) { in shrink_dest_to_read_mask()
86 def->num_components = last_bit; in shrink_dest_to_read_mask()
134 unsigned num_components = 0; in opt_shrink_vector() local
135 for (unsigned i = 0; i < def->num_components; i++) { in opt_shrink_vector()
143 for (j = 0; j < num_components; j++) { in opt_shrink_vector()
151 if (j == num_components) { in opt_shrink_vector()
152 srcs[num_components] = scalar; in opt_shrink_vector()
153 reswizzle[i] = num_components in opt_shrink_vector()
196 unsigned num_components = util_bitcount(mask); opt_shrink_vectors_alu() local
295 unsigned num_components = 0; opt_shrink_vectors_load_const() local
[all...]
H A Dnir_search_helpers.h37 unsigned src, unsigned num_components, in is_pos_power_of_two()
44 for (unsigned i = 0; i < num_components; i++) { in is_pos_power_of_two()
69 unsigned src, unsigned num_components, in is_neg_power_of_two()
78 for (unsigned i = 0; i < num_components; i++) { in is_neg_power_of_two()
98 unsigned src, unsigned num_components, in is_bitcount2()
105 for (unsigned i = 0; i < num_components; i++) { in is_bitcount2()
118 unsigned src, unsigned num_components, \
125 for (unsigned i = 0; i < num_components; i++) { \
143 unsigned src, unsigned num_components, in is_zero_to_one()
150 for (unsigned i = 0; i < num_components; in is_zero_to_one()
36 is_pos_power_of_two(UNUSED struct hash_table *ht, const nir_alu_instr *instr, unsigned src, unsigned num_components, const uint8_t *swizzle) is_pos_power_of_two() argument
68 is_neg_power_of_two(UNUSED struct hash_table *ht, const nir_alu_instr *instr, unsigned src, unsigned num_components, const uint8_t *swizzle) is_neg_power_of_two() argument
97 is_bitcount2(UNUSED struct hash_table *ht, const nir_alu_instr *instr, unsigned src, unsigned num_components, const uint8_t *swizzle) is_bitcount2() argument
142 is_zero_to_one(UNUSED struct hash_table *ht, const nir_alu_instr *instr, unsigned src, unsigned num_components, const uint8_t *swizzle) is_zero_to_one() argument
174 is_gt_0_and_lt_1(UNUSED struct hash_table *ht, const nir_alu_instr *instr, unsigned src, unsigned num_components, const uint8_t *swizzle) is_gt_0_and_lt_1() argument
200 is_not_const_zero(UNUSED struct hash_table *ht, const nir_alu_instr *instr, unsigned src, unsigned num_components, const uint8_t *swizzle) is_not_const_zero() argument
230 is_ult_0xfffc07fc(UNUSED struct hash_table *ht, const nir_alu_instr *instr, unsigned src, unsigned num_components, const uint8_t *swizzle) is_ult_0xfffc07fc() argument
251 is_first_5_bits_uge_2(UNUSED struct hash_table *ht, const nir_alu_instr *instr, unsigned src, unsigned num_components, const uint8_t *swizzle) is_first_5_bits_uge_2() argument
271 is_not_const(UNUSED struct hash_table *ht, const nir_alu_instr *instr, unsigned src, UNUSED unsigned num_components, UNUSED const uint8_t *swizzle) is_not_const() argument
279 is_not_fmul(struct hash_table *ht, const nir_alu_instr *instr, unsigned src, UNUSED unsigned num_components, UNUSED const uint8_t *swizzle) is_not_fmul() argument
295 is_fmul(struct hash_table *ht, const nir_alu_instr *instr, unsigned src, UNUSED unsigned num_components, UNUSED const uint8_t *swizzle) is_fmul() argument
311 is_fsign(const nir_alu_instr *instr, unsigned src, UNUSED unsigned num_components, UNUSED const uint8_t *swizzle) is_fsign() argument
327 is_not_const_and_not_fsign(struct hash_table *ht, const nir_alu_instr *instr, unsigned src, unsigned num_components, const uint8_t *swizzle) is_not_const_and_not_fsign() argument
426 is_upper_half_zero(UNUSED struct hash_table *ht, const nir_alu_instr *instr, unsigned src, unsigned num_components, const uint8_t *swizzle) is_upper_half_zero() argument
451 is_lower_half_zero(UNUSED struct hash_table *ht, const nir_alu_instr *instr, unsigned src, unsigned num_components, const uint8_t *swizzle) is_lower_half_zero() argument
481 is_integral(struct hash_table *ht, const nir_alu_instr *instr, unsigned src, UNUSED unsigned num_components, UNUSED const uint8_t *swizzle) is_integral() argument
493 is_finite(UNUSED struct hash_table *ht, const nir_alu_instr *instr, unsigned src, UNUSED unsigned num_components, UNUSED const uint8_t *swizzle) is_finite() argument
503 is_finite_not_zero(UNUSED struct hash_table *ht, const nir_alu_instr *instr, unsigned src, UNUSED unsigned num_components, UNUSED const uint8_t *swizzle) is_finite_not_zero() argument
540 is_not_negative(struct hash_table *ht, const nir_alu_instr *instr, unsigned src, UNUSED unsigned num_components, UNUSED const uint8_t *swizzle) is_not_negative() argument
548 is_a_number_not_negative(struct hash_table *ht, const nir_alu_instr *instr, unsigned src, UNUSED unsigned num_components, UNUSED const uint8_t *swizzle) is_a_number_not_negative() argument
559 is_not_positive(struct hash_table *ht, const nir_alu_instr *instr, unsigned src, UNUSED unsigned num_components, UNUSED const uint8_t *swizzle) is_not_positive() argument
567 is_a_number_not_positive(struct hash_table *ht, const nir_alu_instr *instr, unsigned src, UNUSED unsigned num_components, UNUSED const uint8_t *swizzle) is_a_number_not_positive() argument
577 is_not_zero(struct hash_table *ht, const nir_alu_instr *instr, unsigned src, UNUSED unsigned num_components, UNUSED const uint8_t *swizzle) is_not_zero() argument
585 is_a_number_not_zero(struct hash_table *ht, const nir_alu_instr *instr, unsigned src, UNUSED unsigned num_components, UNUSED const uint8_t *swizzle) is_a_number_not_zero() argument
595 is_a_number(struct hash_table *ht, const nir_alu_instr *instr, unsigned src, UNUSED unsigned num_components, UNUSED const uint8_t *swizzle) is_a_number() argument
[all...]
H A Dnir_lower_array_deref_of_vec.c31 assert(value->num_components == 1); in build_write_masked_store()
32 unsigned num_components = glsl_get_components(vec_deref->type); in build_write_masked_store() local
33 assert(num_components > 1 && num_components <= NIR_MAX_VEC_COMPONENTS); in build_write_masked_store()
37 for (unsigned i = 0; i < num_components; i++) in build_write_masked_store()
40 nir_ssa_def *vec = nir_vec(b, comps, num_components); in build_write_masked_store()
103 assert(intrin->num_components == 1); in nir_lower_array_deref_of_vec_impl()
104 unsigned num_components = glsl_get_components(vec_deref->type); in nir_lower_array_deref_of_vec_impl() local
105 assert(num_components > 1 && num_components < in nir_lower_array_deref_of_vec_impl()
[all...]
H A Dnir_lower_ubo_vec4.c77 unsigned bit_size, unsigned num_components) in create_load()
79 nir_ssa_def *def = nir_load_ubo_vec4(b, num_components, bit_size, block, offset); in create_load()
106 unsigned num_components = intr->num_components; in nir_lower_ubo_vec4_lower() local
108 align_offset + chan_size_bytes * num_components <= 16); in nir_lower_ubo_vec4_lower()
110 num_components = chans_per_vec4; in nir_lower_ubo_vec4_lower()
114 num_components); in nir_lower_ubo_vec4_lower()
126 } else if (intr->num_components == 1) { in nir_lower_ubo_vec4_lower()
137 align_offset + chan_size_bytes * intr->num_components <= 8) { in nir_lower_ubo_vec4_lower()
142 BITSET_MASK(intr->num_components) << (align_chan_offse in nir_lower_ubo_vec4_lower()
76 create_load(nir_builder *b, nir_ssa_def *block, nir_ssa_def *offset, unsigned bit_size, unsigned num_components) create_load() argument
[all...]
H A Dnir_format_convert.h67 for (unsigned i = 0; i < src->num_components; i++) { in nir_format_mask_uvec()
71 return nir_iand(b, src, nir_build_imm(b, src->num_components, 32, mask)); in nir_format_mask_uvec()
78 assert(src->num_components <= 4);
80 for (unsigned i = 0; i < src->num_components; i++) {
84 return nir_vec(b, comps, src->num_components);
90 const unsigned *bits, unsigned num_components, in nir_format_unpack_int()
93 assert(num_components >= 1 && num_components <= 4); in nir_format_unpack_int()
99 assert(num_components == 1); in nir_format_unpack_int()
105 for (unsigned i = 0; i < num_components; in nir_format_unpack_int()
89 nir_format_unpack_int(nir_builder *b, nir_ssa_def *packed, const unsigned *bits, unsigned num_components, bool sign_extend) nir_format_unpack_int() argument
170 nir_format_pack_uint(nir_builder *b, nir_ssa_def *color, const unsigned *bits, unsigned num_components) nir_format_pack_uint() argument
232 _nir_format_norm_factor(nir_builder *b, const unsigned *bits, unsigned num_components, bool is_signed) _nir_format_norm_factor() argument
[all...]
H A Dnir_lower_subgroups.c50 intr->num_components = 1; in lower_subgroups_64bit_split_intrinsic()
71 assert(value->num_components == 4 && value->bit_size == 32); in ballot_type_to_uint()
79 unsigned num_components, unsigned bit_size) in uint_to_ballot_type()
81 assert(util_is_power_of_two_nonzero(num_components)); in uint_to_ballot_type()
82 assert(util_is_power_of_two_nonzero(value->num_components)); in uint_to_ballot_type()
84 unsigned total_bits = bit_size * num_components; in uint_to_ballot_type()
87 if (total_bits > value->bit_size * value->num_components) in uint_to_ballot_type()
100 if (value->num_components > num_components) in uint_to_ballot_type()
101 value = nir_trim_vector(b, value, num_components); in uint_to_ballot_type()
78 uint_to_ballot_type(nir_builder *b, nir_ssa_def *value, unsigned num_components, unsigned bit_size) uint_to_ballot_type() argument
[all...]
H A Dnir_builder.c75 unsigned num_components = op_info->output_size; in nir_builder_alu_instr_finish_and_insert() local
76 if (num_components == 0) { in nir_builder_alu_instr_finish_and_insert()
79 num_components = MAX2(num_components, in nir_builder_alu_instr_finish_and_insert()
80 instr->src[i].src.ssa->num_components); in nir_builder_alu_instr_finish_and_insert()
83 assert(num_components != 0); in nir_builder_alu_instr_finish_and_insert()
112 for (unsigned j = instr->src[i].src.ssa->num_components; in nir_builder_alu_instr_finish_and_insert()
114 instr->src[i].swizzle[j] = instr->src[i].src.ssa->num_components - 1; in nir_builder_alu_instr_finish_and_insert()
118 nir_ssa_dest_init(&instr->instr, &instr->dest.dest, num_components, in nir_builder_alu_instr_finish_and_insert()
120 instr->dest.write_mask = (1 << num_components) in nir_builder_alu_instr_finish_and_insert()
219 nir_vec_scalars(nir_builder *build, nir_ssa_scalar *comp, unsigned num_components) nir_vec_scalars() argument
251 nir_ssa_for_src(nir_builder *build, nir_src src, int num_components) nir_ssa_for_src() argument
277 unsigned num_components = nir_ssa_alu_instr_src_components(instr, srcn); nir_ssa_for_alu_src() local
283 nir_load_system_value(nir_builder *build, nir_intrinsic_op op, int index, unsigned num_components, unsigned bit_size) nir_load_system_value() argument
[all...]
H A Dnir_builder.h158 nir_ssa_undef(nir_builder *build, unsigned num_components, unsigned bit_size) in nir_ssa_undef() argument
161 nir_ssa_undef_instr_create(build->shader, num_components, bit_size); in nir_ssa_undef()
173 nir_build_imm(nir_builder *build, unsigned num_components, in nir_build_imm() argument
177 nir_load_const_instr_create(build->shader, num_components, bit_size); in nir_build_imm()
181 memcpy(load_const->value, value, sizeof(nir_const_value) * num_components); in nir_build_imm()
189 nir_imm_zero(nir_builder *build, unsigned num_components, unsigned bit_size) in nir_imm_zero() argument
192 nir_load_const_instr_create(build->shader, num_components, bit_size); in nir_imm_zero()
363 unsigned num_components, unsigned bit_size);
369 nir_vec(nir_builder *build, nir_ssa_def **comp, unsigned num_components) in nir_vec() argument
371 return nir_build_alu_src_arr(build, nir_op_vec(num_components), com in nir_vec()
378 nir_mov_alu(nir_builder *build, nir_alu_src src, unsigned num_components) nir_mov_alu() argument
406 nir_swizzle(nir_builder *build, nir_ssa_def *src, const unsigned *swiz, unsigned num_components) nir_swizzle() argument
[all...]
H A Dnir_lower_regs_to_ssa.c98 nir_ssa_dest_init(instr, dest, reg->num_components, in rewrite_dest()
120 if (write_mask == (1 << reg->num_components) - 1) { in rewrite_alu_instr()
133 unsigned num_components; in rewrite_alu_instr() local
142 num_components = 0; in rewrite_alu_instr()
145 vec_swizzle[index] = num_components++; in rewrite_alu_instr()
172 assert(ssa_index == num_components); in rewrite_alu_instr()
175 num_components = nir_op_infos[alu->op].output_size; in rewrite_alu_instr()
177 assert(num_components <= 4); in rewrite_alu_instr()
179 alu->dest.write_mask = (1 << num_components) - 1; in rewrite_alu_instr()
181 nir_ssa_dest_init(&alu->instr, &alu->dest.dest, num_components, in rewrite_alu_instr()
[all...]
H A Dnir_lower_alu_width.c56 return alu->dest.dest.ssa.num_components > 1 || in inst_is_vector_alu()
81 for (unsigned j = 1; j < alu->dest.dest.ssa.num_components; j++) { in alu_is_swizzled_in_bounds()
91 nir_alu_ssa_dest_init(nir_alu_instr *alu, unsigned num_components, in nir_alu_ssa_dest_init() argument
94 nir_ssa_dest_init(&alu->instr, &alu->dest.dest, num_components, in nir_alu_ssa_dest_init()
96 alu->dest.write_mask = (1 << num_components) - 1; in nir_alu_ssa_dest_init()
103 unsigned num_components = nir_op_infos[alu->op].input_sizes[0]; in lower_reduction() local
106 for (int i = num_components - 1; i >= 0; i--) { in lower_reduction()
120 if (i == num_components - 1) { in lower_reduction()
154 unsigned num_components = nir_op_infos[alu->op].input_sizes[0]; in lower_fdot() local
157 for (int i = num_components in lower_fdot()
190 unsigned num_components = alu->dest.dest.ssa.num_components; lower_alu_instr_width() local
[all...]
H A Dnir_lower_io_to_scalar.c30 * Replaces nir_load_input/nir_store_output operations with num_components !=
52 for (unsigned i = 0; i < intr->num_components; i++) { in lower_load_input_to_scalar()
57 chan_intr->num_components = 1; in lower_load_input_to_scalar()
73 nir_vec(b, loads, intr->num_components)); in lower_load_input_to_scalar()
88 for (unsigned i = 0; i < intr->num_components; i++) { in lower_load_to_scalar()
93 chan_intr->num_components = 1; in lower_load_to_scalar()
120 nir_vec(b, loads, intr->num_components)); in lower_load_to_scalar()
129 nir_ssa_def *value = nir_ssa_for_src(b, intr->src[0], intr->num_components); in lower_store_output_to_scalar()
131 for (unsigned i = 0; i < intr->num_components; i++) { in lower_store_output_to_scalar()
137 chan_intr->num_components in lower_store_output_to_scalar()
[all...]
H A Dnir_lower_io_to_vector.c67 resize_array_vec_type(const struct glsl_type *type, unsigned num_components) in resize_array_vec_type() argument
71 resize_array_vec_type(glsl_get_array_element(type), num_components); in resize_array_vec_type()
75 return glsl_vector_type(glsl_get_base_type(type), num_components); in resize_array_vec_type()
253 const unsigned num_components = in create_new_io_vars() local
255 if (!num_components) { in create_new_io_vars()
262 for (unsigned i = 1; i < num_components; i++) in create_new_io_vars()
265 frac += num_components; in create_new_io_vars()
487 ((1 << intrin->num_components) - 1) << old_frac; in nir_lower_io_to_vector_impl()
506 intrin->num_components = in nir_lower_io_to_vector_impl()
508 intrin->dest.ssa.num_components in nir_lower_io_to_vector_impl()
[all...]
H A Dnir_lower_blend.c224 assert(src->num_components <= 4); in nir_blend_logicop()
225 assert(dst->num_components <= 4); in nir_blend_logicop()
408 const unsigned num_components = glsl_get_vector_elements(var->type); in nir_lower_blend_store() local
411 blended = nir_trim_vector(b, blended, num_components); in nir_lower_blend_store()
415 nir_component_mask(store->num_components)); in nir_lower_blend_store()
416 store->num_components = num_components; in nir_lower_blend_store()
417 store->dest.ssa.num_components = num_components; in nir_lower_blend_store()
418 nir_intrinsic_set_write_mask(store, nir_component_mask(num_components)); in nir_lower_blend_store()
461 const unsigned num_components = glsl_get_vector_elements(deref->type); nir_lower_blend_instr() local
[all...]
H A Dnir_lower_io.c295 unsigned component, unsigned num_components, unsigned bit_size, in emit_load()
348 load->num_components = num_components; in emit_load()
385 num_components, bit_size, NULL); in emit_load()
406 while (dest_comp < intrin->dest.ssa.num_components) { in lower_load()
408 MIN2(intrin->dest.ssa.num_components - dest_comp, in lower_load()
425 return nir_vec(b, comp64, intrin->dest.ssa.num_components); in lower_load()
431 intrin->dest.ssa.num_components, 32, in lower_load()
435 intrin->dest.ssa.num_components, in lower_load()
444 unsigned component, unsigned num_components, in emit_store()
293 emit_load(struct lower_io_state *state, nir_ssa_def *array_index, nir_variable *var, nir_ssa_def *offset, unsigned component, unsigned num_components, unsigned bit_size, nir_alu_type dest_type) emit_load() argument
442 emit_store(struct lower_io_state *state, nir_ssa_def *data, nir_ssa_def *array_index, nir_variable *var, nir_ssa_def *offset, unsigned component, unsigned num_components, nir_component_mask_t write_mask, nir_alu_type src_type) emit_store() argument
1330 build_explicit_io_load(nir_builder *b, nir_intrinsic_instr *intrin, nir_ssa_def *addr, nir_address_format addr_format, nir_variable_mode modes, uint32_t align_mul, uint32_t align_offset, unsigned num_components) build_explicit_io_load() argument
2543 const unsigned num_components = glsl_get_vector_elements(type); write_constant() local
[all...]
/third_party/mesa3d/src/intel/compiler/
H A Dbrw_nir_lower_mem_access_bit_sizes.c32 unsigned num_components, unsigned bit_size, in dup_mem_intrinsic()
55 dup->num_components = num_components; in dup_mem_intrinsic()
58 assert(num_components == 1); in dup_mem_intrinsic()
71 num_components, bit_size, NULL); in dup_mem_intrinsic()
73 nir_intrinsic_set_write_mask(dup, (1 << num_components) - 1); in dup_mem_intrinsic()
90 const unsigned num_components = intrin->dest.ssa.num_components; in lower_mem_load_bit_size() local
91 const unsigned bytes_read = num_components * (bit_size / 8); in lower_mem_load_bit_size()
94 if (bit_size == 32 && align >= 32 && intrin->num_components < in lower_mem_load_bit_size()
30 dup_mem_intrinsic(nir_builder *b, nir_intrinsic_instr *intrin, nir_ssa_def *store_src, int offset, unsigned num_components, unsigned bit_size, unsigned align) dup_mem_intrinsic() argument
167 const unsigned num_components = intrin->num_components; lower_mem_store_bit_size() local
[all...]
H A Dbrw_nir_lower_storage_image.c42 load->num_components = 2; in _load_image_param()
46 load->num_components = 3; in _load_image_param()
49 load->num_components = 4; in _load_image_param()
55 load->num_components, 32, NULL); in _load_image_param()
118 nir_ssa_def *xypos = (coord->num_components == 1) ? in image_address()
144 if (coord->num_components > 2) { in image_address()
161 if (coord->num_components > 1) { in image_address()
342 assert(color->num_components <= dest_components); in convert_color_for_load()
343 if (color->num_components == dest_components) in convert_color_for_load()
347 for (unsigned i = 0; i < color->num_components; in convert_color_for_load()
[all...]
/third_party/mesa3d/src/gallium/drivers/r600/sfn/
H A Dsfn_nir_legalize_image_load_store.cpp66 unsigned num_components = 2; in r600_legalize_image_load_store_impl() local
70 num_components = 1; break; in r600_legalize_image_load_store_impl()
74 num_components = 2; break; in r600_legalize_image_load_store_impl()
76 num_components = 3; break; in r600_legalize_image_load_store_impl()
81 if (num_components < 3 && nir_intrinsic_image_array(ir)) in r600_legalize_image_load_store_impl()
82 num_components++; in r600_legalize_image_load_store_impl()
84 auto img_size = nir_image_size(b, num_components, 32, ir->src[0].ssa, nir_imm_int(b, 0), in r600_legalize_image_load_store_impl()
89 unsigned mask = (1 << num_components) - 1; in r600_legalize_image_load_store_impl()
90 unsigned num_src1_comp = MIN2(ir->src[1].ssa->num_components, num_components); in r600_legalize_image_load_store_impl()
[all...]
H A Dsfn_nir_lower_64bit.cpp137 intr->dest.ssa.num_components *= 2; in lower()
139 intr->num_components *= 2; in lower()
276 nir_ssa_dest_init(&phi_lo->instr, &phi_lo->dest, phi->dest.ssa.num_components * 2, 32, "");
277 nir_ssa_dest_init(&phi_hi->instr, &phi_hi->dest, phi->dest.ssa.num_components * 2, 32, "");
352 return lc->def.num_components >= 3; in filter()
545 load1->dest.ssa.num_components = 2; in split_double_load()
549 load2->dest.ssa.num_components = old_components - 2; in split_double_load()
597 load2->num_components = second_components; in split_double_load_uniform()
602 intr->dest.ssa.num_components = intr->num_components in split_double_load_uniform()
1387 int num_components = instr->def.num_components; r600_lower_64bit_load_const() local
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/val/
H A Dvalidate_extensions.cpp1590 const uint32_t num_components = _.GetDimension(result_type); in ValidateExtInst() local
1591 if (num_components > 4 && num_components != 8 && num_components != 16) { in ValidateExtInst()
1620 const uint32_t num_components = _.GetDimension(result_type); in ValidateExtInst() local
1621 if (num_components > 4 && num_components != 8 && num_components != 16) { in ValidateExtInst()
1672 const uint32_t num_components = _.GetDimension(result_type); in ValidateExtInst() local
1673 if (num_components > in ValidateExtInst()
1742 const uint32_t num_components = _.GetDimension(result_type); ValidateExtInst() local
1775 const uint32_t num_components = _.GetDimension(result_type); ValidateExtInst() local
1814 const uint32_t num_components = _.GetDimension(result_type); ValidateExtInst() local
1879 const uint32_t num_components = _.GetDimension(result_type); ValidateExtInst() local
1964 const uint32_t num_components = _.GetDimension(result_type); ValidateExtInst() local
1992 const uint32_t num_components = _.GetDimension(result_type); ValidateExtInst() local
2031 const uint32_t num_components = _.GetDimension(p0_type); ValidateExtInst() local
2069 const uint32_t num_components = _.GetDimension(p_type); ValidateExtInst() local
2093 const uint32_t num_components = _.GetDimension(result_type); ValidateExtInst() local
2118 const uint32_t num_components = _.GetDimension(result_type); ValidateExtInst() local
2148 const uint32_t num_components = _.GetDimension(result_type); ValidateExtInst() local
2202 const uint32_t num_components = _.GetDimension(result_type); ValidateExtInst() local
2280 const uint32_t num_components = _.GetDimension(data_type); ValidateExtInst() local
2392 const uint32_t num_components = _.GetDimension(result_type); ValidateExtInst() local
2486 const uint32_t num_components = _.GetDimension(data_type); ValidateExtInst() local
2682 const uint32_t num_components = _.GetDimension(p_data_type); ValidateExtInst() local
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
H A Dvalidate_extensions.cpp1590 const uint32_t num_components = _.GetDimension(result_type); in ValidateExtInst() local
1591 if (num_components > 4 && num_components != 8 && num_components != 16) { in ValidateExtInst()
1620 const uint32_t num_components = _.GetDimension(result_type); in ValidateExtInst() local
1621 if (num_components > 4 && num_components != 8 && num_components != 16) { in ValidateExtInst()
1672 const uint32_t num_components = _.GetDimension(result_type); in ValidateExtInst() local
1673 if (num_components > in ValidateExtInst()
1742 const uint32_t num_components = _.GetDimension(result_type); ValidateExtInst() local
1775 const uint32_t num_components = _.GetDimension(result_type); ValidateExtInst() local
1814 const uint32_t num_components = _.GetDimension(result_type); ValidateExtInst() local
1879 const uint32_t num_components = _.GetDimension(result_type); ValidateExtInst() local
1964 const uint32_t num_components = _.GetDimension(result_type); ValidateExtInst() local
1992 const uint32_t num_components = _.GetDimension(result_type); ValidateExtInst() local
2031 const uint32_t num_components = _.GetDimension(p0_type); ValidateExtInst() local
2069 const uint32_t num_components = _.GetDimension(p_type); ValidateExtInst() local
2093 const uint32_t num_components = _.GetDimension(result_type); ValidateExtInst() local
2118 const uint32_t num_components = _.GetDimension(result_type); ValidateExtInst() local
2148 const uint32_t num_components = _.GetDimension(result_type); ValidateExtInst() local
2202 const uint32_t num_components = _.GetDimension(result_type); ValidateExtInst() local
2280 const uint32_t num_components = _.GetDimension(data_type); ValidateExtInst() local
2392 const uint32_t num_components = _.GetDimension(result_type); ValidateExtInst() local
2486 const uint32_t num_components = _.GetDimension(data_type); ValidateExtInst() local
2682 const uint32_t num_components = _.GetDimension(p_data_type); ValidateExtInst() local
[all...]
/third_party/mesa3d/src/gallium/drivers/zink/nir_to_spirv/
H A Dnir_to_spirv.c116 unsigned num_components, double value);
120 unsigned num_components, int64_t value);
134 get_bvec_type(struct ntv_context *ctx, int num_components) in get_bvec_type() argument
137 if (num_components > 1) in get_bvec_type()
139 num_components); in get_bvec_type()
141 assert(num_components == 1); in get_bvec_type()
273 get_fvec_type(struct ntv_context *ctx, unsigned bit_size, unsigned num_components) in get_fvec_type() argument
278 if (num_components > 1) in get_fvec_type()
280 num_components); in get_fvec_type()
282 assert(num_components in get_fvec_type()
287 get_ivec_type(struct ntv_context *ctx, unsigned bit_size, unsigned num_components) get_ivec_type() argument
301 get_uvec_type(struct ntv_context *ctx, unsigned bit_size, unsigned num_components) get_uvec_type() argument
1094 get_vec_from_bit_size(struct ntv_context *ctx, uint32_t bit_size, uint32_t num_components) get_vec_from_bit_size() argument
1194 size_t num_components = 0; get_alu_src_raw() local
1230 bitcast_to_uvec(struct ntv_context *ctx, SpvId value, unsigned bit_size, unsigned num_components) bitcast_to_uvec() argument
1238 bitcast_to_ivec(struct ntv_context *ctx, SpvId value, unsigned bit_size, unsigned num_components) bitcast_to_ivec() argument
1246 bitcast_to_fvec(struct ntv_context *ctx, SpvId value, unsigned bit_size, unsigned num_components) bitcast_to_fvec() argument
1273 unsigned num_components = nir_dest_num_components(*dest); store_dest() local
1315 get_output_type(struct ntv_context *ctx, unsigned register_index, unsigned num_components) get_output_type() argument
1762 get_fvec_constant(struct ntv_context *ctx, unsigned bit_size, unsigned num_components, double value) get_fvec_constant() argument
1782 get_ivec_constant(struct ntv_context *ctx, unsigned bit_size, unsigned num_components, int64_t value) get_ivec_constant() argument
1818 unsigned num_components = alu_instr_src_components(alu, src); get_alu_src() local
1853 get_alu_type(struct ntv_context *ctx, nir_alu_type type, unsigned num_components, unsigned bit_size) get_alu_type() argument
1887 unsigned num_components = nir_dest_num_components(*dest); get_dest_type() local
1919 unsigned num_components = nir_dest_num_components(alu->dest.dest); emit_alu() local
2297 unsigned num_components = load_const->def.num_components; emit_load_const() local
2353 unsigned num_components = nir_dest_num_components(intr->dest); emit_load_deref() local
2416 unsigned num_components = nir_dest_num_components(intr->dest); emit_load_shared() local
2478 unsigned num_components = nir_dest_num_components(intr->dest); emit_load_push_const() local
2651 unsigned num_components = nir_dest_num_components(intr->dest); emit_interpolate() local
2853 unsigned num_components = glsl_get_sampler_coordinate_components(type); emit_image_deref_size() local
3317 unsigned num_components = nir_src_num_components(*src); get_src_float() local
3326 unsigned num_components = nir_src_num_components(*src); get_src_int() local
3388 unsigned num_components = nir_src_num_components(tex->src[i].src); emit_tex() local
3581 unsigned num_components = nir_dest_num_components(tex->dest); emit_tex() local
[all...]
/third_party/mesa3d/src/compiler/nir/tests/
H A Dbuilder_tests.cpp36 case 8: return glsl_type::u8vec(def->num_components); in type_for_def()
37 case 16: return glsl_type::u16vec(def->num_components); in type_for_def()
38 case 32: return glsl_type::uvec(def->num_components); in type_for_def()
39 case 64: return glsl_type::u64vec(def->num_components); in type_for_def()
54 store->num_components = val->num_components; in store_test_val()
57 nir_intrinsic_set_write_mask(store, ((1 << val->num_components) - 1)); in store_test_val()
/third_party/mesa3d/src/panfrost/util/
H A Dpan_lower_framebuffer.c111 pan_replicate(nir_builder *b, nir_ssa_def *v, unsigned num_components) in pan_replicate() argument
116 replicated[i] = nir_channel(b, v, i % num_components); in pan_replicate()
122 pan_unpack_pure_32(nir_builder *b, nir_ssa_def *pack, unsigned num_components) in pan_unpack_pure_32() argument
124 return nir_channels(b, pack, (1 << num_components) - 1); in pan_unpack_pure_32()
131 pan_pack_pure_16(nir_builder *b, nir_ssa_def *v, unsigned num_components) in pan_pack_pure_16() argument
133 nir_ssa_def *v4 = pan_replicate(b, v, num_components); in pan_pack_pure_16()
142 pan_unpack_pure_16(nir_builder *b, nir_ssa_def *pack, unsigned num_components) in pan_unpack_pure_16() argument
146 assert(num_components <= 4); in pan_unpack_pure_16()
148 for (unsigned i = 0; i < num_components; i += 2) { in pan_unpack_pure_16()
156 return nir_pad_vec4(b, nir_vec(b, unpacked, num_components)); in pan_unpack_pure_16()
196 pan_pack_pure_8(nir_builder *b, nir_ssa_def *v, unsigned num_components) pan_pack_pure_8() argument
202 pan_unpack_pure_8(nir_builder *b, nir_ssa_def *pack, unsigned num_components) pan_unpack_pure_8() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/lima/ir/pp/
H A Dregalloc.c197 int num_components = src->reg->num_components; in ppir_update_spilled_src() local
209 load->num_components = num_components; in ppir_update_spilled_src()
214 ld_dest->write_mask = u_bit_consecutive(0, num_components); in ppir_update_spilled_src()
247 alu_dest->ssa.num_components = num_components; in ppir_update_spilled_src()
249 alu_dest->write_mask = u_bit_consecutive(0, num_components); in ppir_update_spilled_src()
282 int num_components = reg->num_components; in ppir_update_spilled_dest_load() local
[all...]
/third_party/skia/third_party/externals/libjpeg-turbo/
H A Djcparam.c354 cinfo->num_components = 1; in jpeg_set_colorspace()
360 cinfo->num_components = 3; in jpeg_set_colorspace()
367 cinfo->num_components = 3; in jpeg_set_colorspace()
376 cinfo->num_components = 4; in jpeg_set_colorspace()
384 cinfo->num_components = 4; in jpeg_set_colorspace()
391 cinfo->num_components = cinfo->input_components; in jpeg_set_colorspace()
392 if (cinfo->num_components < 1 || cinfo->num_components > MAX_COMPONENTS) in jpeg_set_colorspace()
393 ERREXIT2(cinfo, JERR_COMPONENT_COUNT, cinfo->num_components, in jpeg_set_colorspace()
395 for (ci = 0; ci < cinfo->num_components; c in jpeg_set_colorspace()
[all...]

Completed in 26 milliseconds

12345678910>>...16