Home
last modified time | relevance | path

Searched refs:nir_src_for_ssa (Results 1 – 25 of 167) sorted by relevance

1234567

/third_party/mesa3d/src/compiler/nir/tests/
Dbuilder_tests.cpp55 store->src[0] = nir_src_for_ssa(&nir_build_deref_var(b, var)->dest.ssa); in store_test_val()
56 store->src[1] = nir_src_for_ssa(val); in store_test_val()
111 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()
Dcomparison_pre_tests.cpp499 flt->src[0].src = nir_src_for_ssa(v1); in TEST_F()
500 flt->src[1].src = nir_src_for_ssa(a); in TEST_F()
514 fadd->src[0].src = nir_src_for_ssa(v1); in TEST_F()
515 fadd->src[1].src = nir_src_for_ssa(a); in TEST_F()
556 flt->src[0].src = nir_src_for_ssa(v1); in TEST_F()
557 flt->src[1].src = nir_src_for_ssa(a); in TEST_F()
571 fadd->src[0].src = nir_src_for_ssa(v2); in TEST_F()
572 fadd->src[1].src = nir_src_for_ssa(a); in TEST_F()
Dopt_if_tests.cpp126 nir_phi_instr_add_src(phi, then_block, nir_src_for_ssa(one)); in TEST_F()
153 nir_phi_instr_add_src(phi, x->parent_instr->block, nir_src_for_ssa(x)); in TEST_F()
159 nir_phi_instr_add_src(phi, nir_cursor_current_block(bld.cursor), nir_src_for_ssa(y)); in TEST_F()
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_atomics_to_ssbo.c101 new_instr->src[0] = nir_src_for_ssa(buffer); in lower_instr()
103 new_instr->src[2] = nir_src_for_ssa(temp); in lower_instr()
110 new_instr->src[0] = nir_src_for_ssa(buffer); in lower_instr()
112 new_instr->src[2] = nir_src_for_ssa(temp); in lower_instr()
116 new_instr->src[0] = nir_src_for_ssa(buffer); in lower_instr()
121 new_instr->src[0] = nir_src_for_ssa(buffer); in lower_instr()
Dnir_lower_drawpixels.c151 tex->src[0].src = nir_src_for_ssa(&tex_deref->dest.ssa); in lower_color()
153 tex->src[1].src = nir_src_for_ssa(&tex_deref->dest.ssa); in lower_color()
156 nir_src_for_ssa(nir_channels(b, texcoord, in lower_color()
193 tex->src[0].src = nir_src_for_ssa(&pixelmap_deref->dest.ssa); in lower_color()
195 tex->src[1].src = nir_src_for_ssa(&pixelmap_deref->dest.ssa); in lower_color()
197 tex->src[2].src = nir_src_for_ssa(nir_channels(b, def, 0x3)); in lower_color()
211 tex->src[0].src = nir_src_for_ssa(nir_channels(b, def, 0xc)); in lower_color()
Dnir_lower_bitmap.c100 tex->src[0].src = nir_src_for_ssa(&tex_deref->dest.ssa); in lower_bitmap()
102 tex->src[1].src = nir_src_for_ssa(&tex_deref->dest.ssa); in lower_bitmap()
105 nir_src_for_ssa(nir_channels(b, texcoord, in lower_bitmap()
Dnir_lower_readonly_images_to_tex.c137 tex->src[0].src = nir_src_for_ssa(&deref->dest.ssa); in lower_readonly_image_op()
152 tex->src[1].src = nir_src_for_ssa(coord); in lower_readonly_image_op()
157 tex->src[2].src = nir_src_for_ssa(lod); in lower_readonly_image_op()
170 tex->src[1].src = nir_src_for_ssa(lod); in lower_readonly_image_op()
Dnir_builder.h176 return nir_push_if_src(build, nir_src_for_ssa(condition)); in nir_push_if()
211 nir_phi_instr_add_src(phi, nir_if_last_then_block(nif), nir_src_for_ssa(then_def)); in nir_if_phi()
212 nir_phi_instr_add_src(phi, nir_if_last_else_block(nif), nir_src_for_ssa(else_def)); in nir_if_phi()
511 instr->src[0].src = nir_src_for_ssa(src0); in nir_build_alu()
513 instr->src[1].src = nir_src_for_ssa(src1); in nir_build_alu()
515 instr->src[2].src = nir_src_for_ssa(src2); in nir_build_alu()
517 instr->src[3].src = nir_src_for_ssa(src3); in nir_build_alu()
532 instr->src[i].src = nir_src_for_ssa(srcs[i]); in nir_build_alu_src_arr()
598 alu_src.src = nir_src_for_ssa(src); in nir_swizzle()
722 nir_src c_src = nir_src_for_ssa(c); in nir_vector_extract()
[all …]
Dnir_opt_vectorize.c242 new_alu->src[i].src = nir_src_for_ssa(def); in instr_try_combine()
282 nir_src_for_ssa(&new_alu->dest.dest.ssa)); in instr_try_combine()
290 nir_instr_rewrite_src(user_instr, src, nir_src_for_ssa(new_alu1)); in instr_try_combine()
295 nir_if_rewrite_condition(src->parent_if, nir_src_for_ssa(new_alu1)); in instr_try_combine()
318 nir_src_for_ssa(&new_alu->dest.dest.ssa)); in instr_try_combine()
326 nir_src_for_ssa(new_alu2)); in instr_try_combine()
331 nir_if_rewrite_condition(src->parent_if, nir_src_for_ssa(new_alu2)); in instr_try_combine()
Dnir_lower_input_attachments.c121 tex->src[0].src = nir_src_for_ssa(&deref->dest.ssa); in try_lower_input_load()
124 tex->src[1].src = nir_src_for_ssa(coord); in try_lower_input_load()
128 tex->src[2].src = nir_src_for_ssa(nir_imm_int(&b, 0)); in try_lower_input_load()
178 nir_instr_rewrite_src(&tex->instr, &tex->src[1].src, nir_src_for_ssa(coord)); in try_lower_input_texop()
Dnir_repair_ssa.c130 cast->parent = nir_src_for_ssa(block_def); in repair_ssa_def()
140 nir_instr_rewrite_src(src->parent_instr, src, nir_src_for_ssa(block_def)); in repair_ssa_def()
156 nir_if_rewrite_condition(src->parent_if, nir_src_for_ssa(block_def)); in repair_ssa_def()
Dnir_lower_io.c326 load->src[0] = nir_src_for_ssa(array_index); in emit_load()
327 load->src[1] = nir_src_for_ssa(offset); in emit_load()
329 load->src[0] = nir_src_for_ssa(barycentric); in emit_load()
330 load->src[1] = nir_src_for_ssa(offset); in emit_load()
332 load->src[0] = nir_src_for_ssa(offset); in emit_load()
410 store->src[0] = nir_src_for_ssa(data); in emit_store()
422 store->src[1] = nir_src_for_ssa(array_index); in emit_store()
424 store->src[array_index ? 2 : 1] = nir_src_for_ssa(offset); in emit_store()
1336 load->src[0] = nir_src_for_ssa( in build_explicit_io_load()
1338 load->src[1] = nir_src_for_ssa(nir_channel(b, addr, 3)); in build_explicit_io_load()
[all …]
Dnir_lower_regs_to_ssa.c62 nir_instr_rewrite_src(instr, src, nir_src_for_ssa(def)); in rewrite_src()
80 nir_if_rewrite_condition(nif, nir_src_for_ssa(def)); in rewrite_if_condition()
194 vec->src[i].src = nir_src_for_ssa(new_src); in rewrite_alu_instr()
197 vec->src[i].src = nir_src_for_ssa(old_src); in rewrite_alu_instr()
/third_party/mesa3d/src/gallium/drivers/lima/ir/
Dlima_nir_split_loads.c80 nir_instr_rewrite_src(src->parent_instr, src, nir_src_for_ssa(def)); in replace_intrinsic()
85 nir_instr_rewrite_src(src->parent_instr, src, nir_src_for_ssa(new)); in replace_intrinsic()
91 nir_src_for_ssa(clone_intrinsic(b, intrin))); in replace_intrinsic()
109 nir_instr_rewrite_src(src->parent_instr, src, nir_src_for_ssa(def)); in replace_load_const()
116 nir_instr_rewrite_src(src->parent_instr, src, nir_src_for_ssa(new)); in replace_load_const()
/third_party/mesa3d/src/compiler/glsl/
Dglsl_to_nir.cpp1223 instr->src[0] = nir_src_for_ssa(&nir_deref->dest.ssa); in visit()
1230 instr->src[1] = nir_src_for_ssa(evaluate_rvalue(inst->as_rvalue())); in visit()
1238 instr->src[2] = nir_src_for_ssa(evaluate_rvalue(inst->as_rvalue())); in visit()
1268 instr->src[0] = nir_src_for_ssa(&evaluate_deref(counter)->dest.ssa); in visit()
1279 nir_src_for_ssa(evaluate_rvalue((ir_dereference *)param)); in visit()
1285 nir_src_for_ssa(evaluate_rvalue((ir_dereference *)param)); in visit()
1317 instr->src[0] = nir_src_for_ssa(&deref->dest.ssa); in visit()
1348 instr->src[1] = nir_src_for_ssa(nir_imm_int(&b, 0)); in visit()
1367 instr->src[1] = nir_src_for_ssa(nir_vec(&b, srcs, 4)); in visit()
1375 nir_src_for_ssa(evaluate_rvalue((ir_dereference *)param)); in visit()
[all …]
/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_nir.c78 nir_instr_rewrite_src(instr, &intr->src[1], nir_src_for_ssa(ssa)); in etna_lower_io()
128 vec->src[i].src = nir_src_for_ssa(coord->ssa); in etna_lower_io()
132 vec->src[i].src = nir_src_for_ssa(lod_bias->ssa); in etna_lower_io()
138 nir_instr_rewrite_src(&tex->instr, coord, nir_src_for_ssa(&vec->dest.dest.ssa)); in etna_lower_io()
173 nir_src_for_ssa(nir_fmul(&b, alu->src[0].src.ssa, imm))); in etna_lower_alu_impl()
187 mul->src[0].src = mul->src[1].src = nir_src_for_ssa(ssa); in etna_lower_alu_impl()
/third_party/mesa3d/src/gallium/auxiliary/nir/
Dtgsi_to_nir.c184 src.src = nir_src_for_ssa(&dest->dest.ssa); in ttn_src_for_dest()
572 src = nir_src_for_ssa(load); in ttn_src_for_file_and_index()
586 src = nir_src_for_ssa(c->imm_defs[index]); in ttn_src_for_file_and_index()
652 src = nir_src_for_ssa(load); in ttn_src_for_file_and_index()
660 return nir_src_for_ssa(ttn_emulate_tgsi_front_face(c)); in ttn_src_for_file_and_index()
664 return nir_src_for_ssa(nir_load_var(&c->build, c->input_var_position)); in ttn_src_for_file_and_index()
668 return nir_src_for_ssa(nir_load_var(&c->build, c->input_var_point)); in ttn_src_for_file_and_index()
674 return nir_src_for_ssa(nir_load_deref(&c->build, deref)); in ttn_src_for_file_and_index()
683 return nir_src_for_ssa(nir_load_deref(&c->build, deref)); in ttn_src_for_file_and_index()
714 nir_src_for_ssa(nir_imm_int(b, dim->Index - 1)); in ttn_src_for_file_and_index()
[all …]
/third_party/mesa3d/src/compiler/spirv/
Dvtn_subgroup.c59 intrin->src[0] = nir_src_for_ssa(src0->def); in vtn_build_subgroup_instr()
61 intrin->src[1] = nir_src_for_ssa(index); in vtn_build_subgroup_instr()
99 ballot->src[0] = nir_src_for_ssa(vtn_get_nir_ssa(b, w[3 + has_scope])); in vtn_handle_subgroup()
116 intrin->src[0] = nir_src_for_ssa(vtn_get_nir_ssa(b, w[4])); in vtn_handle_subgroup()
117 intrin->src[1] = nir_src_for_ssa(nir_load_subgroup_invocation(&b->nb)); in vtn_handle_subgroup()
170 intrin->src[0] = nir_src_for_ssa(src0); in vtn_handle_subgroup()
172 intrin->src[1] = nir_src_for_ssa(src1); in vtn_handle_subgroup()
266 intrin->src[0] = nir_src_for_ssa(src0); in vtn_handle_subgroup()
Dvtn_amd.c88 intrin->src[i] = nir_src_for_ssa(vtn_get_nir_ssa(b, w[i + 5])); in vtn_handle_amd_shader_ballot_instruction()
108 intrin->src[1] = nir_src_for_ssa(nir_imm_int(&b->nb, 0)); in vtn_handle_amd_shader_ballot_instruction()
131 if (nir_src_as_const_value(nir_src_for_ssa(src[0]))) { in vtn_handle_amd_shader_trinary_minmax_instruction()
211 intrin->src[0] = nir_src_for_ssa(&deref->dest.ssa); in vtn_handle_amd_shader_explicit_vertex_parameter_instruction()
212 intrin->src[1] = nir_src_for_ssa(vtn_get_nir_ssa(b, w[6])); in vtn_handle_amd_shader_explicit_vertex_parameter_instruction()
/third_party/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_instruction_tex.cpp162 nir_src_for_ssa(corr)); in lower_coord_shift_normalized()
181 nir_src_for_ssa(corr)); in lower_coord_shift_unnormalized()
294 nir_tex_instr_add_src(tex, nir_tex_src_ddx, nir_src_for_ssa(grad)); in lower_txl_txf_array_or_cube()
295 nir_tex_instr_add_src(tex, nir_tex_src_ddy, nir_src_for_ssa(grad)); in lower_txl_txf_array_or_cube()
385nir_src_for_ssa(nir_fmul(b, nir_ssa_for_src(b, tex->src[ddx_idx].src, 3), zero_dot_5))); in r600_nir_lower_cube_to_2darray_impl()
389nir_src_for_ssa(nir_fmul(b, nir_ssa_for_src(b, tex->src[ddy_idx].src, 3), zero_dot_5))); in r600_nir_lower_cube_to_2darray_impl()
394 nir_src_for_ssa(new_coord)); in r600_nir_lower_cube_to_2darray_impl()
/third_party/mesa3d/src/freedreno/ir3/
Dir3_nir_lower_tg4_to_tex.c64 tex->src[tg4->num_srcs].src = nir_src_for_ssa(offset); in ir3_nir_lower_tg4_to_tex_instr()
71 nir_src_for_ssa(nir_iadd(b, orig, offset)); in ir3_nir_lower_tg4_to_tex_instr()
74 tex->src[num_srcs - 1].src = nir_src_for_ssa(nir_imm_float(b, 0)); in ir3_nir_lower_tg4_to_tex_instr()
/third_party/mesa3d/src/mesa/program/
Dprog_to_nir.c76 src.src = nir_src_for_ssa(&dest->dest.ssa); in ptn_src_for_dest()
143 src.src = nir_src_for_ssa(nir_load_var(b, var)); in ptn_get_src()
152 src.src = nir_src_for_ssa(nir_load_var(b, var)); in ptn_get_src()
171 src.src = nir_src_for_ssa(nir_imm_vec4(b, v[0], v[1], v[2], v[3])); in ptn_get_src()
185 src.src = nir_src_for_ssa(nir_load_deref(b, deref)); in ptn_get_src()
252 instr->src[i].src = nir_src_for_ssa(src[i]); in ptn_alu()
271 mov->src[0].src = nir_src_for_ssa(def); in ptn_move_dest_masked()
575 instr->src[src_number].src = nir_src_for_ssa(&deref->dest.ssa); in ptn_tex()
578 instr->src[src_number].src = nir_src_for_ssa(&deref->dest.ssa); in ptn_tex()
583 nir_src_for_ssa(nir_swizzle(b, src[0], SWIZ(X, Y, Z, W), in ptn_tex()
[all …]
/third_party/mesa3d/src/broadcom/compiler/
Dv3d_nir_lower_scratch.c71 chan_instr->src[0] = nir_src_for_ssa(chan_offset); in v3d_nir_lower_load_scratch()
105 chan_instr->src[0] = nir_src_for_ssa(nir_channel(b, in v3d_nir_lower_store_scratch()
108 chan_instr->src[1] = nir_src_for_ssa(chan_offset); in v3d_nir_lower_store_scratch()
Dv3d_nir_lower_robust_buffer_access.c39 size->src[0] = nir_src_for_ssa(nir_imm_int(b, buffer_idx)); in rewrite_offset()
51 nir_src_for_ssa(offset)); in rewrite_offset()
101 nir_src_for_ssa(offset)); in lower_shared()
/third_party/mesa3d/src/panfrost/midgard/
Dmidgard_errata_lod.c55 nir_src idx = nir_src_for_ssa(nir_imm_int(b, tex->texture_index)); in nir_lod_errata_instr()
78 nir_src_for_ssa(clamped)); in nir_lod_errata_instr()

1234567