From bd4f8786e3ce9327f815708021bf68fdf41f77ff Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 17 Sep 2020 12:58:31 -0400 Subject: [PATCH] zink: ralloc the main context we can start sticking stuff onto this now Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c index 3137ab94169..c9a33e54497 100644 --- a/src/gallium/drivers/zink/zink_context.c +++ b/src/gallium/drivers/zink/zink_context.c @@ -98,7 +98,7 @@ zink_context_destroy(struct pipe_context *pctx) _mesa_hash_table_destroy(ctx->program_cache, NULL); _mesa_hash_table_destroy(ctx->compute_program_cache, NULL); _mesa_hash_table_destroy(ctx->render_pass_cache, NULL); - FREE(ctx); + ralloc_free(ctx); } static enum pipe_reset_status @@ -1703,7 +1703,7 @@ struct pipe_context * zink_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags) { struct zink_screen *screen = zink_screen(pscreen); - struct zink_context *ctx = CALLOC_STRUCT(zink_context); + struct zink_context *ctx = rzalloc(NULL, struct zink_context); if (!ctx) goto fail;