Home
last modified time | relevance | path

Searched refs:src_deref (Results 1 – 9 of 9) sorted by relevance

/external/mesa3d/src/compiler/nir/
Dnir_lower_var_copies.c54 nir_deref_instr *src_deref, in emit_deref_copy_load_store() argument
62 src_deref = build_deref_to_next_wildcard(b, src_deref, &src_deref_arr); in emit_deref_copy_load_store()
70 unsigned length = glsl_get_length(src_deref->type); in emit_deref_copy_load_store()
79 nir_build_deref_array_imm(b, src_deref, i), in emit_deref_copy_load_store()
84 glsl_get_bare_type(src_deref->type)); in emit_deref_copy_load_store()
88 nir_load_deref_with_access(b, src_deref, src_access), in emit_deref_copy_load_store()
Dnir_opt_find_array_copies.c579 nir_deref_instr *src_deref; in opt_find_array_copies_block() local
582 src_deref = nir_src_as_deref(intrin->src[1]); in opt_find_array_copies_block()
588 src_deref = NULL; in opt_find_array_copies_block()
590 src_deref = nir_src_as_deref(load->src[0]); in opt_find_array_copies_block()
596 src_deref = NULL; in opt_find_array_copies_block()
603 if (src_deref && in opt_find_array_copies_block()
604 !nir_deref_mode_must_be(src_deref, nir_var_function_temp | in opt_find_array_copies_block()
606 src_deref = NULL; in opt_find_array_copies_block()
615 if (src_deref && in opt_find_array_copies_block()
616 (nir_deref_instr_has_indirect(src_deref) || in opt_find_array_copies_block()
[all …]
Dnir_lower_const_arrays_to_uniforms.c286 nir_deref_instr *src_deref = NULL, *dst_deref = NULL; in nir_lower_const_arrays_to_uniforms() local
294 src_deref = nir_src_as_deref(intrin->src[0]); in nir_lower_const_arrays_to_uniforms()
329 if (src_deref && nir_deref_mode_must_be(src_deref, nir_var_function_temp)) { in nir_lower_const_arrays_to_uniforms()
330 nir_variable *var = nir_deref_instr_get_variable(src_deref); in nir_lower_const_arrays_to_uniforms()
Dnir_opt_large_constants.c399 nir_deref_instr *src_deref = NULL, *dst_deref = NULL; in nir_opt_large_constants() local
409 src_deref = nir_src_as_deref(intrin->src[0]); in nir_opt_large_constants()
448 if (src_deref && nir_deref_mode_must_be(src_deref, nir_var_function_temp)) { in nir_opt_large_constants()
449 nir_variable *var = nir_deref_instr_get_variable(src_deref); in nir_opt_large_constants()
Dnir_lower_variable_initializers.c78 nir_deref_instr *src_deref = nir_build_deref_var(b, var->pointer_initializer); in lower_const_initializer() local
82 nir_store_deref(b, dst_deref, &src_deref->def, ~0); in lower_const_initializer()
Dnir_deref.c976 nir_deref_instr *src_deref = nir_instr_as_deref(src_instr); in opt_alu_of_cast() local
977 if (src_deref->deref_type != nir_deref_type_cast) in opt_alu_of_cast()
980 nir_src_rewrite(&alu->src[i].src, src_deref->parent.ssa); in opt_alu_of_cast()
Dnir_split_vars.c771 nir_deref_instr *src_deref = nir_src_as_deref(copy->src[1]); in split_array_copies_impl() local
776 get_array_deref_info(src_deref, var_info_map, modes); in split_array_copies_impl()
783 nir_deref_path_init(&src_path, src_deref, mem_ctx); in split_array_copies_impl()
/external/mesa3d/src/amd/vulkan/nir/
Dradv_nir_lower_cooperative_matrix.c144 nir_deref_instr *src_deref = nir_instr_as_deref(intr->src[0].ssa->parent_instr); in radv_nir_lower_cooperative_matrix() local
145 struct glsl_cmat_description desc = *glsl_get_cmat_description(src_deref->type); in radv_nir_lower_cooperative_matrix()
251 nir_deref_instr *src_deref = nir_instr_as_deref(src->parent_instr); in radv_nir_lower_cooperative_matrix() local
252 struct glsl_cmat_description desc = *glsl_get_cmat_description(src_deref->type); in radv_nir_lower_cooperative_matrix()
326 nir_deref_instr *src_deref = nir_instr_as_deref(intr->src[1].ssa->parent_instr); in radv_nir_lower_cooperative_matrix() local
328 struct glsl_cmat_description src_desc = *glsl_get_cmat_description(src_deref->type); in radv_nir_lower_cooperative_matrix()
/external/mesa3d/src/compiler/spirv/
Dvtn_variables.c154 nir_deref_instr *src_deref = vtn_get_deref_for_ssa_value(b, src->ssa); in vtn_copy_value() local
156 vtn_local_store(b, vtn_local_load(b, src_deref, 0), dst_deref, 0); in vtn_copy_value()
544 nir_deref_instr *src_deref = vtn_get_deref_for_ssa_value(b, inout); in _vtn_local_load_store() local
545 nir_cmat_copy(&b->nb, &deref->def, &src_deref->def); in _vtn_local_load_store()
2969 nir_deref_instr *src_deref = vtn_nir_deref(b, w[3]); in vtn_handle_variables() local
2981 nir_def *valid = nir_build_deref_mode_is(&b->nb, 1, &src_deref->def, nir_mode); in vtn_handle_variables()
2983 &src_deref->def, in vtn_handle_variables()
3002 nir_deref_instr *src_deref = vtn_nir_deref(b, w[3]); in vtn_handle_variables() local
3005 nir_bcsel(&b->nb, nir_build_deref_mode_is(&b->nb, 1, &src_deref->def, in vtn_handle_variables()
3011 nir_bcsel(&b->nb, nir_build_deref_mode_is(&b->nb, 1, &src_deref->def, in vtn_handle_variables()