diff options
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 2 |
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); |