aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2020-07-17 19:03:05 +0200
committerMarge Bot <[email protected]>2020-07-17 17:33:35 +0000
commit810bf7d32b39d4f7f6fd4b229321865847732ad3 (patch)
tree11ce18fbac9d0d8877f608e47b44db26df442ccf /src
parent35beb938fc592ab875e2c45ac05c32f3b7d55611 (diff)
zink: pass mem_ctx to ralloc_size-call
Reviewed-By: Mike Blumenkrantz <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5954>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c2
1 files changed, 1 insertions, 1 deletions
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);