Following patches will be doing further cleanup after calling
fd_context_destroy() so it is easier if we move the free() into
the per-gen backend code.
Signed-off-by: Rob Clark <robdclark@gmail.com>
fd2_context_destroy(struct pipe_context *pctx)
{
fd_context_destroy(pctx);
+ free(pctx);
}
static struct pipe_resource *
fd_hw_query_fini(pctx);
fd_context_destroy(pctx);
+
+ free(fd3_ctx);
}
static const uint8_t primtypes[] = {
fd_hw_query_fini(pctx);
fd_context_destroy(pctx);
+
+ free(fd4_ctx);
}
static const uint8_t primtypes[] = {
u_upload_destroy(fd5_ctx->border_color_uploader);
fd_context_destroy(pctx);
+
+ free(fd5_ctx);
}
static const uint8_t primtypes[] = {
(uint32_t)ctx->stats.batch_gmem, (uint32_t)ctx->stats.batch_nondraw,
(uint32_t)ctx->stats.batch_restore);
}
-
- FREE(ctx);
}
static void