From 810bf7d32b39d4f7f6fd4b229321865847732ad3 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Fri, 17 Jul 2020 19:03:05 +0200 Subject: [PATCH] zink: pass mem_ctx to ralloc_size-call Reviewed-By: Mike Blumenkrantz Part-of: --- src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c index 11145ed4257..2f55585b415 100644 --- a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c +++ b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c @@ -917,7 +917,7 @@ emit_so_info(struct ntv_context *ctx, unsigned max_output_location, if (so_output.start_component) spirv_builder_emit_component(&ctx->builder, var_id, so_output.start_component); - uint32_t *key = ralloc_size(NULL, sizeof(uint32_t)); + uint32_t *key = ralloc_size(ctx->mem_ctx, sizeof(uint32_t)); *key = (uint32_t)so_output.register_index << 2 | so_output.start_component; _mesa_hash_table_insert(ctx->so_outputs, key, (void *)(intptr_t)var_id); -- 2.30.2