Home
last modified time | relevance | path

Searched refs:nir_src (Results 1 – 25 of 135) sorted by relevance

123456

/third_party/mesa3d/src/compiler/nir/
Dnir.h950 struct nir_src;
954 struct nir_src *indirect; /** < NULL for no indirect offset */
965 struct nir_src *indirect; /** < NULL for no indirect offset */
973 typedef struct nir_src { struct
988 } nir_src; typedef
990 static inline nir_src
993 nir_src src = { { NULL } }; in nir_src_init()
1000 list_for_each_entry(nir_src, src, &(reg_or_ssa_def)->uses, use_link)
1003 list_for_each_entry_safe(nir_src, src, &(reg_or_ssa_def)->uses, use_link)
1006 list_for_each_entry(nir_src, src, &(reg_or_ssa_def)->if_uses, use_link)
[all …]
Dnir.c431 static bool src_has_indirect(nir_src *src) in src_has_indirect()
436 static void src_free_indirects(nir_src *src) in src_free_indirects()
457 void nir_src_copy(nir_src *dest, const nir_src *src) in nir_src_copy()
468 dest->reg.indirect = calloc(1, sizeof(nir_src)); in nir_src_copy()
488 dest->reg.indirect = calloc(1, sizeof(nir_src)); in nir_dest_copy()
608 src_init(nir_src *src) in src_init()
769 calloc(1, sizeof(nir_intrinsic_instr) + num_srcs * sizeof(nir_src)); in nir_intrinsic_instr_create()
836 nir_src src) in nir_tex_instr_add_src()
903 nir_phi_instr_add_src(nir_phi_instr *instr, nir_block *pred, nir_src src) in nir_phi_instr_add_src()
1078 add_use_cb(nir_src *src, void *state) in add_use_cb()
[all …]
Dnir_lower_ssbo.c89 nir_src *idx, unsigned bitsize) in nir_load_ssbo_prop()
114 nir_src index = intr->src[is_store ? 1 : 0]; in lower_ssbo_instr()
115 nir_src *offset_src = nir_get_io_offset_src(intr); in lower_ssbo_instr()
Dnir_lower_locals_to_regs.c130 static nir_src
135 nir_src src; in get_deref_reg_src()
162 src.reg.indirect = malloc(sizeof(nir_src)); in get_deref_reg_src()
237 nir_src reg_src = get_deref_reg_src(deref, state); in lower_locals_to_regs_block()
Dnir_inline_uniforms.c50 src_only_uses_uniforms(const nir_src *src, int component, in src_only_uses_uniforms()
139 is_induction_variable(const nir_src *src, int component, nir_loop_info *info, in is_induction_variable()
185 add_inlinable_uniforms(const nir_src *cond, nir_loop_info *info, in add_inlinable_uniforms()
247 const nir_src *cond = &if_node->condition; in process_node()
Dnir_lower_amul.c74 lower_large_src(nir_src *src, void *s) in lower_large_src()
104 large_ubo(lower_state *state, nir_src src) in large_ubo()
114 large_ssbo(lower_state *state, nir_src src) in large_ssbo()
Dnir_instr_set.c29 src_is_ssa(nir_src *src, void *data) in src_is_ssa()
89 hash_src(uint32_t hash, const nir_src *src) in hash_src()
329 nir_srcs_equal(nir_src src1, nir_src src2) in nir_srcs_equal()
361 get_neg_instr(nir_src s) in get_neg_instr()
486 nir_src alu1_actual_src; in nir_alu_srcs_negative_equal()
503 nir_src alu2_actual_src; in nir_alu_srcs_negative_equal()
Dnir_propagate_invariant.c27 add_src(nir_src *src, struct set *invariants) in add_src()
37 add_src_cb(nir_src *src, void *state) in add_src_cb()
/third_party/mesa3d/src/gallium/frontends/lavapipe/
Dlvp_inline_uniforms.c34 src_only_uses_uniforms(const nir_src *src, int component, in src_only_uses_uniforms()
120 is_induction_variable(const nir_src *src, int component, nir_loop_info *info, in is_induction_variable()
166 add_inlinable_uniforms(const nir_src *cond, nir_loop_info *info, in add_inlinable_uniforms()
223 is_src_uniform_load(nir_src src) in is_src_uniform_load()
238 const nir_src *cond = &if_node->condition; in process_node()
333 const nir_src *src = entry->key; in lvp_find_inlinable_uniforms()
335 list_for_each_entry(nir_src, rsrc, &src->ssa->uses, use_link) { in lvp_find_inlinable_uniforms()
/third_party/mesa3d/src/gallium/drivers/r600/sfn/tests/
Dsfn_valuefactory_test.cpp66 nir_src src = nir_src_for_ssa(sum); in TEST_F()
76 nir_src src1 = NIR_SRC_INIT; in TEST_F()
80 nir_src src2 = NIR_SRC_INIT; in TEST_F()
151 mov->dest.dest.reg.indirect = (nir_src *)calloc(1, sizeof(nir_src)); in TEST_F()
152 nir_src addr = nir_src_for_ssa(c2); in TEST_F()
/third_party/mesa3d/src/compiler/nir/tests/
Dbuilder_tests.cpp111 nir_src val = nir_src_for_ssa(test_val(0)); in TEST_F()
127 nir_src val = nir_src_for_ssa(test_val(0)); in TEST_F()
146 nir_src val = nir_src_for_ssa(test_val(0)); in TEST_F()
/third_party/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_valuefactory.h213 std::vector<PRegister, Allocator<PRegister>> dest_vector(const nir_src& src,
226 … RegisterVec4 src_vec4(const nir_src& src, Pin pin, const RegisterVec4::Swizzle &swz = {0,1,2,3});
230 PVirtualValue src(const nir_src& src, int chan);
246 … std::vector<PVirtualValue, Allocator<PVirtualValue>> src_vec(const nir_src& src, int components);
268 PRegister resolve_array(nir_register *reg, nir_src *indirect,
/third_party/mesa3d/src/freedreno/ir3/
Dir3_image.h34 struct ir3_instruction *ir3_ssbo_to_ibo(struct ir3_context *ctx, nir_src src);
36 struct ir3_instruction *ir3_image_to_ibo(struct ir3_context *ctx, nir_src src);
Dir3_context.h210 nir_src *src);
217 void ir3_handle_bindless_cat6(struct ir3_instruction *instr, nir_src rsrc);
272 utype_src(nir_src src) in utype_src()
Dir3_nir_move_varying_inputs.c62 check_precondition_src(nir_src *src, void *state) in check_precondition_src()
125 move_src(nir_src *src, void *state) in move_src()
Dir3_image.c42 ir3_ssbo_to_ibo(struct ir3_context *ctx, nir_src src) in ir3_ssbo_to_ibo()
61 ir3_image_to_ibo(struct ir3_context *ctx, nir_src src) in ir3_image_to_ibo()
/third_party/mesa3d/src/panfrost/util/
Dpan_sysval.c34 nir_src index = instr->src[0]; in panfrost_sysval_for_ssbo()
45 nir_src index = instr->src[0]; in panfrost_sysval_for_sampler()
55 nir_src index = instr->src[0]; in panfrost_sysval_for_image_size()
Dnir_mod_helpers.c99 nir_src *use = list_first_entry(&dest->ssa.uses, nir_src, use_link); in pan_has_dest_mod()
/third_party/mesa3d/src/imagination/rogue/nir/
Drogue_nir_pfo.c31 nir_src *output_src) in insert_pfo()
38 nir_src new_output_src = nir_src_for_ssa(new_output_src_ssa); in insert_pfo()
/third_party/mesa3d/src/intel/compiler/
Dbrw_vec4.h321 src_reg get_nir_src(const nir_src &src, enum brw_reg_type type,
323 src_reg get_nir_src(const nir_src &src, nir_alu_type type,
325 src_reg get_nir_src(const nir_src &src,
327 src_reg get_nir_src_imm(const nir_src &src);
Dbrw_fs.h294 fs_reg get_nir_src(const nir_src &src);
295 fs_reg get_nir_src_imm(const nir_src &src);
323 void emit_gs_end_primitive(const nir_src &vertex_count_nir_src);
324 void emit_gs_vertex(const nir_src &vertex_count_nir_src,
327 void emit_gs_input_load(const fs_reg &dst, const nir_src &vertex_src,
328 unsigned base_offset, const nir_src &offset_src,
Dbrw_nir_lower_mem_access_bit_sizes.c40 nir_src *intrin_offset_src = nir_get_io_offset_src(intrin); in dup_mem_intrinsic()
99 nir_src *offset_src = nir_get_io_offset_src(intrin); in lower_mem_load_bit_size()
182 nir_src *offset_src = nir_get_io_offset_src(intrin); in lower_mem_store_bit_size()
Dbrw_mesh.cpp149 nir_src *offset_src = nir_get_io_offset_src(intrin); in brw_nir_adjust_task_payload_offsets_instr()
639 nir_src *index_src = &intrin->src[is_load ? 0 : 1]; in brw_nir_adjust_offset_for_arrayed_indices_instr()
640 nir_src *offset_src = &intrin->src[is_load ? 1 : 2]; in brw_nir_adjust_offset_for_arrayed_indices_instr()
655 nir_src *index_src = &intrin->src[is_load ? 0 : 1]; in brw_nir_adjust_offset_for_arrayed_indices_instr()
656 nir_src *offset_src = &intrin->src[is_load ? 1 : 2]; in brw_nir_adjust_offset_for_arrayed_indices_instr()
864 nir_src *offset_nir_src = nir_get_io_offset_src(instr); in emit_urb_direct_writes()
1026 nir_src *offset_nir_src = nir_get_io_offset_src(instr); in emit_urb_direct_reads()
1128 nir_src *offset_nir_src = nir_get_io_offset_src(instr); in emit_task_mesh_store()
1145 nir_src *offset_nir_src = nir_get_io_offset_src(instr); in emit_task_mesh_load()
Dbrw_nir_analyze_boolean_resolves.c44 get_resolve_status_for_src(nir_src *src) in get_resolve_status_for_src()
67 src_mark_needs_resolve(nir_src *src, void *void_state) in src_mark_needs_resolve()
/third_party/mesa3d/src/amd/common/
Dac_nir_lower_esgs_io_to_mem.c212 nir_src *vertex_src) in gs_per_vertex_input_vertex_offset_gfx6()
230 nir_src *vertex_src) in gs_per_vertex_input_vertex_offset_gfx9()
257 nir_src *vertex_src = nir_get_io_arrayed_index_src(instr); in gs_per_vertex_input_offset()

123456