From: Boris Brezillon Date: Wed, 6 Nov 2019 14:52:45 +0000 (+0100) Subject: panfrost: Release the ctx->pipe_framebuffer ref X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b60ed3c7b2491c9bb6f2c1d356c378dd79d53e3c;p=mesa.git panfrost: Release the ctx->pipe_framebuffer ref ctx->pipe_framebuffer contains the last bound FB state, let's release resources pointed by this FB state when the context is destroyed. Signed-off-by: Boris Brezillon Reviewed-by: Alyssa Rosenzweig --- diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index 46fce94eff5..c9aace9f982 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -2448,6 +2448,7 @@ panfrost_destroy(struct pipe_context *pipe) if (panfrost->blitter_wallpaper) util_blitter_destroy(panfrost->blitter_wallpaper); + util_unreference_framebuffer_state(&panfrost->pipe_framebuffer); u_upload_destroy(pipe->stream_uploader); ralloc_free(pipe);