Home
last modified time | relevance | path

Searched refs:dead_ctx (Results 1 – 11 of 11) sorted by relevance

/external/mesa3d/src/compiler/nir/
Dnir_split_per_member_structs.c28 void *dead_ctx; member
64 struct hash_table *var_to_member_map, void *dead_ctx) in split_variable() argument
72 ralloc_array(dead_ctx, nir_variable *, var->num_members); in split_variable()
78 member_name = ralloc_strdup(dead_ctx, var->name); in split_variable()
86 member_name = ralloc_asprintf(dead_ctx, "%s.%s", in split_variable()
89 member_name = ralloc_asprintf(dead_ctx, "%s.@%d", member_name, i); in split_variable()
158 void *dead_ctx = ralloc_context(NULL); in nir_split_per_member_structs() local
160 _mesa_pointer_hash_table_create(dead_ctx); in nir_split_per_member_structs()
168 split_variable(var, shader, var_to_member_map, dead_ctx); in nir_split_per_member_structs()
174 ralloc_free(dead_ctx); in nir_split_per_member_structs()
[all …]
Dnir_lower_vars_to_ssa.c74 void *dead_ctx; member
138 node = deref_node_create(NULL, var->type, true, state->dead_ctx); in get_deref_node_for_var()
175 state->dead_ctx); in get_deref_node_recur()
193 state->dead_ctx); in get_deref_node_recur()
200 deref_node_create(parent, deref->type, false, state->dead_ctx); in get_deref_node_recur()
211 deref_node_create(parent, deref->type, false, state->dead_ctx); in get_deref_node_recur()
241 nir_deref_path_init(&node->path, deref, state->dead_ctx); in get_deref_node()
415 node->loads = _mesa_pointer_set_create(state->dead_ctx); in register_load_instr()
430 node->stores = _mesa_pointer_set_create(state->dead_ctx); in register_store_instr()
446 node->copies = _mesa_pointer_set_create(state->dead_ctx); in register_copy_instr()
[all …]
Dnir_opt_find_array_copies.c64 void *dead_ctx; member
78 struct match_node *node = rzalloc_size(state->dead_ctx, in create_match_node()
407 nir_deref_path_init(&src_path, src, state->dead_ctx); in handle_read()
427 nir_deref_path_init(&dst_path, dst, state->dead_ctx); in handle_write()
451 nir_deref_path_init(&dst_node->first_src_path, src, state->dead_ctx); in handle_write()
454 nir_deref_path_init(&src_path, src, state->dead_ctx); in handle_write()
566 nir_deref_path_init(&dst_path, dst_deref, state->dead_ctx); in opt_find_array_copies_block()
641 s.dead_ctx = ralloc_context(NULL); in opt_find_array_copies_impl()
642 s.var_nodes = _mesa_pointer_hash_table_create(s.dead_ctx); in opt_find_array_copies_impl()
643 s.cast_nodes = _mesa_pointer_hash_table_create(s.dead_ctx); in opt_find_array_copies_impl()
[all …]
Dnir_from_ssa.c40 void *dead_ctx; member
144 merge_set *set = ralloc(state->dead_ctx, merge_set); in get_merge_node()
149 merge_node *node = ralloc(state->dead_ctx, merge_node); in get_merge_node()
244 add_parallel_copy_to_end_of_block(nir_block *block, void *dead_ctx) in add_parallel_copy_to_end_of_block() argument
266 nir_parallel_copy_instr_create(dead_ctx); in add_parallel_copy_to_end_of_block()
322 isolate_phi_nodes_block(nir_block *block, void *dead_ctx) in isolate_phi_nodes_block() argument
341 nir_parallel_copy_instr_create(dead_ctx); in isolate_phi_nodes_block()
356 nir_parallel_copy_entry *entry = rzalloc(dead_ctx, in isolate_phi_nodes_block()
370 nir_parallel_copy_entry *entry = rzalloc(dead_ctx, in isolate_phi_nodes_block()
522 ralloc_steal(state->dead_ctx, parent_instr); in rewrite_ssa_def()
[all …]
Dnir_lower_phis_to_scalar.c37 void *dead_ctx; member
261 ralloc_steal(state->dead_ctx, phi); in lower_phis_to_scalar_block()
286 state.dead_ctx = ralloc_context(NULL); in lower_phis_to_scalar_impl()
287 state.phi_table = _mesa_pointer_hash_table_create(state.dead_ctx); in lower_phis_to_scalar_impl()
296 ralloc_free(state.dead_ctx); in lower_phis_to_scalar_impl()
Dnir_lower_regs_to_ssa.c220 void *dead_ctx = ralloc_context(NULL); in nir_lower_regs_to_ssa_impl() local
223 state.values = ralloc_array(dead_ctx, struct nir_phi_builder_value *, in nir_lower_regs_to_ssa_impl()
229 BITSET_WORD *defs = ralloc_array(dead_ctx, BITSET_WORD, block_set_words); in nir_lower_regs_to_ssa_impl()
293 ralloc_free(dead_ctx); in nir_lower_regs_to_ssa_impl()
Dnir_gather_info.c309 void *dead_ctx) in gather_intrinsic_info() argument
742 gather_info_block(nir_block *block, nir_shader *shader, void *dead_ctx) in gather_info_block() argument
750 gather_intrinsic_info(nir_instr_as_intrinsic(instr), shader, dead_ctx); in gather_info_block()
830 void *dead_ctx = ralloc_context(NULL); in nir_shader_gather_info() local
832 gather_info_block(block, shader, dead_ctx); in nir_shader_gather_info()
834 ralloc_free(dead_ctx); in nir_shader_gather_info()
Dnir_clone.c800 void *dead_ctx = ralloc_context(NULL); in nir_shader_replace() local
801 ralloc_adopt(dead_ctx, dst); in nir_shader_replace()
802 ralloc_free(dead_ctx); in nir_shader_replace()
Dnir_serialize.c2128 void *dead_ctx = ralloc_context(NULL); in nir_shader_serialize_deserialize() local
2129 ralloc_adopt(dead_ctx, shader); in nir_shader_serialize_deserialize()
2130 ralloc_free(dead_ctx); in nir_shader_serialize_deserialize()
2132 dead_ctx = ralloc_context(NULL); in nir_shader_serialize_deserialize()
2136 nir_shader *copy = nir_deserialize(dead_ctx, options, &reader); in nir_shader_serialize_deserialize()
2141 ralloc_free(dead_ctx); in nir_shader_serialize_deserialize()
Dnir_lower_io.c41 void *dead_ctx; member
720 state.dead_ctx = ralloc_context(NULL); in nir_lower_io_impl()
733 ralloc_free(state.dead_ctx); in nir_lower_io_impl()
/external/mesa3d/docs/relnotes/
D19.1.0.rst4437 - nir: free dead_ctx in case of no progress