From: Erik Faye-Lund Date: Fri, 17 Jul 2020 17:03:05 +0000 (+0200) Subject: zink: pass mem_ctx to ralloc_size-call X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=810bf7d32b39d4f7f6fd4b229321865847732ad3;p=mesa.git zink: pass mem_ctx to ralloc_size-call Reviewed-By: Mike Blumenkrantz Part-of: --- 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);