zink: ralloc the main context

we can start sticking stuff onto this now

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9206>
This commit is contained in:
Mike Blumenkrantz 2020-09-17 12:58:31 -04:00 committed by Marge Bot
parent 9d03dc2537
commit bd4f8786e3
1 changed files with 2 additions and 2 deletions

View File

@ -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;