mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
nir/gather_info: don't ralloc the set
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
0e0cc12de6
commit
9c118c9936
1 changed files with 3 additions and 2 deletions
|
|
@ -1080,8 +1080,9 @@ nir_shader_gather_info(nir_shader *shader, nir_function_impl *entrypoint)
|
|||
shader->info.writes_memory = shader->info.has_transform_feedback_varyings;
|
||||
|
||||
void *dead_ctx = ralloc_context(NULL);
|
||||
struct set *visited_funcs = _mesa_pointer_set_create(dead_ctx);
|
||||
gather_func_info(entrypoint, shader, visited_funcs, dead_ctx);
|
||||
struct set visited_funcs;
|
||||
_mesa_pointer_set_init(&visited_funcs, dead_ctx);
|
||||
gather_func_info(entrypoint, shader, &visited_funcs, dead_ctx);
|
||||
ralloc_free(dead_ctx);
|
||||
|
||||
shader->info.per_view_outputs = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue