Home
last modified time | relevance | path

Searched refs:load_const (Results 1 – 12 of 12) sorted by relevance

/external/mesa3d/src/compiler/nir/
Dnir_serialize.c665 } load_const; member
1274 header.load_const.instr_type = lc->instr.type; in write_load_const()
1275 header.load_const.last_component = lc->def.num_components - 1; in write_load_const()
1276 header.load_const.bit_size = encode_bit_size_3bits(lc->def.bit_size); in write_load_const()
1277 header.load_const.packing = load_const_full; in write_load_const()
1285 header.load_const.packing = load_const_scalar_hi_19bits; in write_load_const()
1286 header.load_const.packed_value = lc->value[0].u64 >> 45; in write_load_const()
1289 header.load_const.packing = load_const_scalar_lo_19bits_sext; in write_load_const()
1290 header.load_const.packed_value = lc->value[0].u64; in write_load_const()
1296 header.load_const.packing = load_const_scalar_hi_19bits; in write_load_const()
[all …]
Dnir_opt_constant_folding.c76 nir_load_const_instr* load_const = nir_instr_as_load_const(src_instr); in try_fold_alu() local
80 src[i][j] = load_const->value[alu->src[i].swizzle[j]]; in try_fold_alu()
Dnir_builder.h258 nir_load_const_instr *load_const = in nir_build_imm() local
260 if (!load_const) in nir_build_imm()
263 memcpy(load_const->value, value, sizeof(nir_const_value) * num_components); in nir_build_imm()
265 nir_builder_instr_insert(build, &load_const->instr); in nir_build_imm()
267 return &load_const->def; in nir_build_imm()
273 nir_load_const_instr *load_const = in nir_imm_zero() local
278 nir_builder_instr_insert(build, &load_const->instr); in nir_imm_zero()
280 return &load_const->def; in nir_imm_zero()
Dnir_search.c843 nir_load_const_instr *load_const = nir_instr_as_load_const(instr); in nir_algebraic_automaton() local
845 load_const->def.index); in nir_algebraic_automaton()
/external/mesa3d/src/intel/compiler/
Dbrw_nir_opt_peephole_ffma.c152 nir_load_const_instr *load_const = in any_alu_src_is_a_constant() local
155 if (list_is_singular(&load_const->def.uses) && in any_alu_src_is_a_constant()
156 list_is_empty(&load_const->def.if_uses)) { in any_alu_src_is_a_constant()
/external/mesa3d/src/gallium/drivers/freedreno/a2xx/
Dir2_nir.c142 load_const(struct ir2_context *ctx, float *value_f, unsigned ncomp) in load_const() function
196 return load_const(ctx, (float[]) {0.0f}, 1); in ir2_zero()
233 return load_const(ctx, c, src.ssa->num_components); in make_src()
472 tmp->src[2] = load_const(ctx, (float[]) {1.0f}, 1); in emit_alu()
726 coord_xy->src[2] = load_const(ctx, (float[]) {1.5f}, 1); in emit_tex()
/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_compiler_nir.c886 nir_load_const_instr *load_const = nir_instr_as_load_const(instr); in emit_shader() local
887 for (unsigned i = 0; i < load_const->def.num_components; i++) in emit_shader()
888 load_const->value[i] = CONST(load_const->value[i].u32); in emit_shader()
/external/mesa3d/src/gallium/drivers/zink/nir_to_spirv/
Dnir_to_spirv.c1494 emit_load_const(struct ntv_context *ctx, nir_load_const_instr *load_const) in emit_load_const() argument
1496 unsigned bit_size = load_const->def.bit_size; in emit_load_const()
1497 unsigned num_components = load_const->def.num_components; in emit_load_const()
1506 load_const->value[i].b); in emit_load_const()
1511 load_const->value[i].u32); in emit_load_const()
1520 load_const->value[0].b); in emit_load_const()
1522 constant = emit_uint_const(ctx, bit_size, load_const->value[0].u32); in emit_load_const()
1525 store_ssa_def(ctx, &load_const->def, constant); in emit_load_const()
/external/mesa3d/src/gallium/auxiliary/nir/
Dtgsi_to_nir.c472 nir_load_const_instr *load_const; in ttn_emit_immediate() local
475 load_const = nir_load_const_instr_create(b->shader, 4, 32); in ttn_emit_immediate()
476 c->imm_defs[c->next_imm] = &load_const->def; in ttn_emit_immediate()
479 for (i = 0; i < load_const->def.num_components; i++) in ttn_emit_immediate()
480 load_const->value[i].u32 = tgsi_imm->u[i].Uint; in ttn_emit_immediate()
482 nir_builder_instr_insert(b, &load_const->instr); in ttn_emit_immediate()
/external/mesa3d/docs/relnotes/
D20.1.0.rst444 - pan/bi: Implement load_const
1240 - aco: setup subdword regclasses for ssa_undef & load_const
D20.0.0.rst2241 - nir/serialize: pack load_const with non-64-bit constants better
D20.2.0.rst607 - pan/bi: Handle vectorized load_const