Home
last modified time | relevance | path

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

/external/mesa3d/src/compiler/nir/
Dnir_opt_constant_folding.c75 nir_load_const_instr* load_const = nir_instr_as_load_const(src_instr); in constant_fold_alu_instr() local
79 if (load_const->def.bit_size == 64) in constant_fold_alu_instr()
80 src[i].u64[j] = load_const->value.u64[instr->src[i].swizzle[j]]; in constant_fold_alu_instr()
82 src[i].u32[j] = load_const->value.u32[instr->src[i].swizzle[j]]; in constant_fold_alu_instr()
Dnir_lower_locals_to_regs.c157 nir_load_const_instr *load_const = in get_deref_reg_src() local
159 load_const->value.u32[0] = glsl_get_length(parent_type); in get_deref_reg_src()
160 nir_instr_insert_before(instr, &load_const->instr); in get_deref_reg_src()
165 mul->src[1].src.ssa = &load_const->def; in get_deref_reg_src()
Dnir_builder.h196 nir_load_const_instr *load_const = in nir_build_imm() local
198 if (!load_const) in nir_build_imm()
201 load_const->value = value; in nir_build_imm()
203 nir_builder_instr_insert(build, &load_const->instr); in nir_build_imm()
205 return &load_const->def; in nir_build_imm()
/external/mesa3d/src/intel/compiler/
Dbrw_nir_opt_peephole_ffma.c151 nir_load_const_instr *load_const = in any_alu_src_is_a_constant() local
154 if (list_is_singular(&load_const->def.uses) && in any_alu_src_is_a_constant()
155 list_empty(&load_const->def.if_uses)) { in any_alu_src_is_a_constant()
/external/mesa3d/src/gallium/auxiliary/nir/
Dtgsi_to_nir.c470 nir_load_const_instr *load_const; in ttn_emit_immediate() local
473 load_const = nir_load_const_instr_create(b->shader, 4, 32); in ttn_emit_immediate()
474 c->imm_defs[c->next_imm] = &load_const->def; in ttn_emit_immediate()
478 load_const->value.u32[i] = tgsi_imm->u[i].Uint; in ttn_emit_immediate()
480 nir_builder_instr_insert(b, &load_const->instr); in ttn_emit_immediate()