Searched refs:load_const (Results 1 – 5 of 5) sorted by relevance
75 nir_load_const_instr* load_const = nir_instr_as_load_const(src_instr); in constant_fold_alu_instr() local79 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()
157 nir_load_const_instr *load_const = in get_deref_reg_src() local159 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()
196 nir_load_const_instr *load_const = in nir_build_imm() local198 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()
151 nir_load_const_instr *load_const = in any_alu_src_is_a_constant() local154 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()
470 nir_load_const_instr *load_const; in ttn_emit_immediate() local473 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()