Home
last modified time | relevance | path

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

/third_party/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
160 merge_set *set = ralloc(state->dead_ctx, merge_set); in get_merge_node()
166 merge_node *node = ralloc(state->dead_ctx, merge_node); in get_merge_node()
304 add_parallel_copy_to_end_of_block(nir_shader *shader, nir_block *block, void *dead_ctx) in add_parallel_copy_to_end_of_block() argument
381 isolate_phi_nodes_block(nir_shader *shader, nir_block *block, void *dead_ctx) in isolate_phi_nodes_block() argument
415 nir_parallel_copy_entry *entry = rzalloc(dead_ctx, in isolate_phi_nodes_block()
430 nir_parallel_copy_entry *entry = rzalloc(dead_ctx, in isolate_phi_nodes_block()
874 state.dead_ctx = ralloc_context(NULL); in nir_convert_from_ssa_impl()
881 add_parallel_copy_to_end_of_block(shader, block, state.dead_ctx); in nir_convert_from_ssa_impl()
885 isolate_phi_nodes_block(shader, block, state.dead_ctx); in nir_convert_from_ssa_impl()
[all …]
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.c424 void *dead_ctx) in gather_intrinsic_info() argument
805 gather_info_block(nir_block *block, nir_shader *shader, void *dead_ctx) in gather_info_block() argument
813 gather_intrinsic_info(nir_instr_as_intrinsic(instr), shader, dead_ctx); in gather_info_block()
899 void *dead_ctx = ralloc_context(NULL); in nir_shader_gather_info() local
901 gather_info_block(block, shader, dead_ctx); in nir_shader_gather_info()
903 ralloc_free(dead_ctx); in nir_shader_gather_info()
Dnir_clone.c789 void *dead_ctx = ralloc_context(NULL); in nir_shader_replace() local
790 ralloc_adopt(dead_ctx, dst); in nir_shader_replace()
791 ralloc_free(dead_ctx); in nir_shader_replace()
Dnir_serialize.c2120 void *dead_ctx = ralloc_context(NULL); in nir_shader_serialize_deserialize() local
2121 ralloc_adopt(dead_ctx, shader); in nir_shader_serialize_deserialize()
2122 ralloc_free(dead_ctx); in nir_shader_serialize_deserialize()
2124 dead_ctx = ralloc_context(NULL); in nir_shader_serialize_deserialize()
2128 nir_shader *copy = nir_deserialize(dead_ctx, options, &reader); in nir_shader_serialize_deserialize()
2133 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()
/third_party/mesa3d/src/intel/compiler/
Dbrw_nir_lower_intersection_shader.c135 void *dead_ctx = ralloc_context(intersection); in brw_nir_lower_intersection_shader() local
140 nir_shader *any_hit_tmp = nir_shader_clone(dead_ctx, any_hit); in brw_nir_lower_intersection_shader()
143 any_hit_var_remap = _mesa_pointer_hash_table_create(dead_ctx); in brw_nir_lower_intersection_shader()
253 ralloc_free(dead_ctx); in brw_nir_lower_intersection_shader()
/third_party/mesa3d/src/amd/vulkan/
Dradv_pipeline_rt.c1002 void *dead_ctx = ralloc_context(intersection); in nir_lower_intersection_shader() local
1007 any_hit = nir_shader_clone(dead_ctx, any_hit); in nir_lower_intersection_shader()
1010 any_hit_var_remap = _mesa_pointer_hash_table_create(dead_ctx); in nir_lower_intersection_shader()
1080 ralloc_free(dead_ctx); in nir_lower_intersection_shader()
/third_party/mesa3d/docs/relnotes/
D19.1.0.rst4437 - nir: free dead_ctx in case of no progress