mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 12:18:09 +02:00
nir/search: don't ralloc the hash table
Reviewed-by: Gert Wollny <gert.wollny@collabora.com> Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36728>
This commit is contained in:
parent
9c118c9936
commit
d87bde4abf
1 changed files with 4 additions and 3 deletions
|
|
@ -910,7 +910,8 @@ nir_algebraic_impl(nir_function_impl *impl,
|
|||
}
|
||||
memset(states.data, 0, states.size);
|
||||
|
||||
struct hash_table *range_ht = _mesa_pointer_hash_table_create(NULL);
|
||||
struct hash_table range_ht;
|
||||
_mesa_pointer_hash_table_init(&range_ht, NULL);
|
||||
|
||||
nir_instr_worklist *worklist = nir_instr_worklist_create();
|
||||
|
||||
|
|
@ -946,14 +947,14 @@ nir_algebraic_impl(nir_function_impl *impl,
|
|||
continue;
|
||||
|
||||
progress |= nir_algebraic_instr(&build, instr,
|
||||
range_ht, condition_flags,
|
||||
&range_ht, condition_flags,
|
||||
table, &states, worklist, &dead_instrs);
|
||||
}
|
||||
|
||||
nir_instr_free_list(&dead_instrs);
|
||||
|
||||
nir_instr_worklist_destroy(worklist);
|
||||
ralloc_free(range_ht);
|
||||
_mesa_hash_table_fini(&range_ht, NULL);
|
||||
util_dynarray_fini(&states);
|
||||
|
||||
return nir_progress(progress, impl, nir_metadata_control_flow);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue