From 9c118c993624ee7af76638564fb03bdd58db4a7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sat, 9 Aug 2025 17:41:13 -0400 Subject: [PATCH] nir/gather_info: don't ralloc the set Reviewed-by: Gert Wollny Acked-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/compiler/nir/nir_gather_info.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/compiler/nir/nir_gather_info.c b/src/compiler/nir/nir_gather_info.c index 47e8d223d4b..c6ac849ae12 100644 --- a/src/compiler/nir/nir_gather_info.c +++ b/src/compiler/nir/nir_gather_info.c @@ -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;