Home
last modified time | relevance | path

Searched refs:nir_src_bit_size (Results 1 – 25 of 41) sorted by relevance

12

/third_party/mesa3d/src/compiler/nir/
Dnir_lower_bool_to_bitsize.c64 uint32_t bit_size = nir_src_bit_size(alu->src[start_idx].src); in make_sources_canonical()
66 if (nir_src_bit_size(alu->src[i].src) != bit_size) { in make_sources_canonical()
147 uint32_t bit_size = nir_src_bit_size(alu->src[0].src); in lower_alu_instr()
315 bit_size = nir_src_bit_size(alu->src[1].src); in lower_alu_instr()
373 uint32_t src_bit_size = nir_src_bit_size(phi_src->src); in lower_phi_instr()
Dnir_loop_analyze.c169 nir_src_bit_size(alu->src[0].src) < 64) in instr_cost()
175 if (nir_src_bit_size(alu->src[i].src) == 64 && in instr_cost()
891 assert(nir_src_bit_size(alu->src[0].src) == in calculate_iterations()
892 nir_src_bit_size(alu->src[1].src)); in calculate_iterations()
893 unsigned bit_size = nir_src_bit_size(alu->src[0].src); in calculate_iterations()
Dnir_lower_to_source_mods.c94 if (nir_src_bit_size(alu->src[i].src) == 64 && in nir_lower_to_source_mods_block()
Dnir_lower_bool_to_int32.c76 assert(nir_src_bit_size(alu->src[0].src) == 32); in lower_alu_instr()
Dnir_instr_set.c466 if (nir_src_bit_size(alu1->src[src1].src) != in nir_alu_srcs_negative_equal()
467 nir_src_bit_size(alu2->src[src2].src)) in nir_alu_srcs_negative_equal()
471 nir_src_bit_size(alu1->src[src1].src); in nir_alu_srcs_negative_equal()
Dnir_search_helpers.h392 unsigned half_bit_size = nir_src_bit_size(instr->src[src].src) / 2; in is_upper_half_zero()
418 (1 << (nir_src_bit_size(instr->src[src].src) / 2)) - 1; in is_lower_half_zero()
Dnir_search.c283 nir_src_bit_size(instr->src[src].src) != value->bit_size) in match_value()
370 unsigned bit_size = nir_src_bit_size(instr->src[src].src); in match_value()
461 return nir_src_bit_size(state->variables[-value->bit_size - 1].src); in replace_bitsize()
Dnir_opt_phi_precision.c174 *bit_size = nir_src_bit_size(alu->src[0].src); in widening_conversion_op()
Dnir_gather_info.c794 shader->info.bit_sizes_float |= nir_src_bit_size(instr->src[i].src); in gather_alu_info()
796 shader->info.bit_sizes_int |= nir_src_bit_size(instr->src[i].src); in gather_alu_info()
/third_party/mesa3d/src/panfrost/midgard/
Dmidgard_nir_lower_image_bitsize.c57 if (nir_src_bit_size(intr->src[1]) == 16) in nir_lower_image_bitsize()
Dmidgard_address.c237 bool force_sext = (nir_src_bit_size(*offset) < 64); in mir_set_offset()
244 ins->src_types[2] = nir_type_uint | nir_src_bit_size(*offset); in mir_set_offset()
Dmidgard_compile.c279 int src_bit_size = nir_src_bit_size(alu->src[0].src); in midgard_vectorize_filter()
625 unsigned bits = nir_src_bit_size(src.src); in mir_copy_src()
720 ASSERTED unsigned src_bitsize = nir_src_bit_size(instr->src[0].src); in emit_alu()
920 && nir_src_bit_size(instr->src[0].src) == 32 in emit_alu()
1230 unsigned bitsize = nir_src_bit_size(intr->src[0]) * in emit_global()
1279 unsigned bitsize = nir_src_bit_size(instr->src[val_src]); in emit_atomic()
1429 ins.src_types[0] = base_type | nir_src_bit_size(instr->src[3]); in emit_image_op()
2199 nir_src_bit_size(instr->src[coord_idx].src); in set_tex_coord()
2368 unsigned sz = nir_src_bit_size(instr->src[i].src); in emit_texop_native()
/third_party/mesa3d/src/intel/compiler/
Dbrw_fs_nir.cpp515 nir_src_bit_size(src0->src[0].src))); in optimize_extract_to_float()
700 nir_src_bit_size(instr->src[i].src))); in prepare_alu_destination_and_sources()
782 nir_src_bit_size(inot_instr->src[0].src) != 32) in try_emit_b2fi_of_inot()
831 nir_src_bit_size(fsign_instr->src[0].src)); in emit_fsign()
1424 const uint32_t bit_size = nir_src_bit_size(instr->src[0].src); in nir_emit_alu()
1499 nir_src_bit_size(inot_src_instr->src[0].src))); in nir_emit_alu()
1503 nir_src_bit_size(inot_src_instr->src[1].src))); in nir_emit_alu()
1582 uint32_t bit_size = nir_src_bit_size(instr->src[0].src); in nir_emit_alu()
2079 if (nir_src_bit_size(src) == 64 && devinfo->ver == 7) { in get_nir_src()
2087 reg.type = brw_reg_type_from_bit_size(nir_src_bit_size(src), in get_nir_src()
[all …]
Dbrw_vec4_nir.cpp260 assert(nir_src_bit_size(src) == 32); in get_nir_src_imm()
425 assert(nir_src_bit_size(instr->src[0]) == 32); in nir_emit_intrinsic()
466 assert(nir_src_bit_size(instr->src[0]) == 32); in nir_emit_intrinsic()
825 unsigned bit_size = nir_src_bit_size(cmp_instr->src[i].src); in optimize_predicate()
957 nir_src_bit_size(instr->src[1].src) == 32 && in try_immediate_source()
961 nir_src_bit_size(instr->src[0].src) == 32 && in try_immediate_source()
1143 nir_src_bit_size(instr->src[i].src)); in nir_emit_alu()
1175 if (nir_src_bit_size(instr->src[0].src) == 64) in nir_emit_alu()
1474 if (nir_src_bit_size(instr->src[0].src) < 64) { in nir_emit_alu()
1571 if (nir_src_bit_size(instr->src[0].src) == 64) { in nir_emit_alu()
Dbrw_nir_lower_conversions.c68 unsigned src_bit_size = nir_src_bit_size(alu->src[0].src); in lower_alu_instr()
Dbrw_vec4_tcs.cpp291 assert(nir_src_bit_size(instr->src[0]) == 32); in nir_emit_intrinsic()
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_nir.c1090 src_bit_size[i] = nir_src_bit_size(instr->src[i].src); in visit_alu()
1239 unsigned bit_size = nir_src_bit_size(instr->src[0]); in visit_store_output()
1300 unsigned bit_size = nir_src_bit_size(instr->src[1]); in visit_store_var()
1360 int bitsize = nir_src_bit_size(instr->src[0]); in visit_store_ssbo()
1380 int bitsize = nir_src_bit_size(instr->src[2]); in visit_ssbo_atomic()
1596 int bitsize = nir_src_bit_size(instr->src[0]); in visit_shared_store()
1607 int bitsize = nir_src_bit_size(instr->src[1]); in visit_shared_atomic()
1638 nir_src_bit_size(instr->src[0]), in visit_load_kernel_input()
1647 nir_src_bit_size(instr->src[0]), in visit_load_global()
1656 int bitsize = nir_src_bit_size(instr->src[0]); in visit_store_global()
[all …]
/third_party/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_nir_lower_64bit.cpp128 if (nir_src_bit_size(intr->src[0]) != 64) in filter()
132 if (nir_src_bit_size(intr->src[1]) != 64) in filter()
156 return nir_src_bit_size(alu->src[1].src) == 64; in filter()
637 if (nir_src_bit_size(intr->src[1]) == 64) in filter()
844 *s = nir_src_bit_size(*src) == 64; in store_64bit_intr()
850 if (nir_src_bit_size(*src) != 64) in double2vec2()
/third_party/mesa3d/src/microsoft/compiler/
Dnir_to_dxil.c1500 const int bit_size = nir_src_bit_size(*src); in get_src()
1515 assert(nir_src_bit_size(*src) >= 16); in get_src()
1516 assert(nir_src_bit_size(*src) != 64 || (ctx->mod.feats.doubles && in get_src()
1580 unsigned op0_bit_size = nir_src_bit_size(alu->src[0].src); in emit_shift()
1581 unsigned op1_bit_size = nir_src_bit_size(alu->src[1].src); in emit_shift()
1614 unsigned src_bits = nir_src_bit_size(alu->src[0].src); in get_cast_op()
1727 if (is_double(info->input_types[0], nir_src_bit_size(alu->src[0].src))) in emit_cast()
1773 unsigned src_bits = nir_src_bit_size(alu->src[0].src); in emit_unary_intin()
1792 assert(nir_src_bit_size(alu->src[0].src) == dst_bits); in emit_binary_intin()
1793 assert(nir_src_bit_size(alu->src[1].src) == dst_bits); in emit_binary_intin()
[all …]
/third_party/mesa3d/src/asahi/compiler/
Dagx_compiler.h430 agx_size_for_bits(nir_src_bit_size(*src))); in agx_src_index()
434 agx_size_for_bits(nir_src_bit_size(*src))); in agx_src_index()
/third_party/mesa3d/src/panfrost/bifrost/
Dbifrost_compile.c141 unsigned sz = nir_src_bit_size(intr->src[0]); in bi_varying_src0_for_barycentric()
744 return (nir_src_bit_size(*src) == 64) ? in bi_addr_high()
764 bi_store(b, instr->num_components * nir_src_bit_size(instr->src[0]), in bi_emit_store()
777 unsigned sz = nir_src_bit_size(*arg); in bi_emit_axchg_to()
815 unsigned sz = nir_src_bit_size(*arg_1); in bi_emit_acmpxchg_to()
1201 assert(nir_src_bit_size(instr->src[1]) == 32); in bi_emit_intrinsic()
1219 assert(nir_src_bit_size(instr->src[3]) == 32); in bi_emit_intrinsic()
1235 assert(nir_src_bit_size(instr->src[1]) == 32); in bi_emit_intrinsic()
1291 assert(nir_src_bit_size(instr->src[0]) == 1); in bi_emit_intrinsic()
1436 unsigned bitsize = nir_src_bit_size(src.src); in bi_alu_src_index()
[all …]
/third_party/mesa3d/src/gallium/drivers/zink/nir_to_spirv/
Dnir_to_spirv.c1092 int bit_size = nir_src_bit_size(alu->src[src].src); in get_alu_src_raw()
1543 unsigned bit_size = nir_src_bit_size(alu->src[src].src); in get_alu_src()
1762 nir_src_bit_size(alu->src[0].src), in emit_alu()
1769 nir_src_bit_size(alu->src[0].src), in emit_alu()
1809 if (nir_src_bit_size(alu->src[0].src) == 1) \ in emit_alu()
2055 unsigned idx = MIN2(nir_src_bit_size(intr->src[0]), 32) >> 4; in emit_store_ssbo()
2058 emit_bo(ctx, ctx->ssbo_vars[const_block_index->u32], nir_src_bit_size(intr->src[0])); in emit_store_ssbo()
2061 unsigned bit_size = nir_src_bit_size(intr->src[0]); in emit_store_ssbo()
2261 bool qword = nir_src_bit_size(intr->src[0]) == 64; in emit_store_shared()
2501 unsigned bit_size = MIN2(nir_src_bit_size(intr->src[0]), 32); in emit_ssbo_atomic_intrinsic()
[all …]
/third_party/mesa3d/src/freedreno/ir3/
Dir3_context.h269 return utype_for_size(nir_src_bit_size(src)); in utype_src()
/third_party/mesa3d/src/gallium/auxiliary/nir/
Dnir_to_tgsi.c195 bool is_64 = nir_src_bit_size(instr->src[0]) == 64; in ntt_output_decl()
692 if (nir_src_bit_size(src.src) == 64) { in ntt_get_alu_src()
847 int src_64 = nir_src_bit_size(instr->src[0].src) == 64; in ntt_emit_alu()
1155 if (nir_src_bit_size(instr->src[1].src) == 64) { in ntt_emit_alu()
1551 if (nir_src_bit_size(instr->src[0]) == 64) in ntt_emit_mem()
2489 int src_bit_size = nir_src_bit_size(alu->src[0].src); in ntt_should_vectorize_instr()
2599 nir_src_bit_size(alu->src[0].src) == 64); in scalarize_64bit()
2629 if (nir_src_bit_size(instr->src[0]) != 64) in nir_to_tgsi_lower_64bit_intrinsic()
/third_party/mesa3d/docs/relnotes/
D19.1.3.rst96 - nir: Use nir_src_bit_size instead of alu1->dest.dest.ssa.bit_size

12