Module: Mesa Branch: master Commit: b60ed3c7b2491c9bb6f2c1d356c378dd79d53e3c URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b60ed3c7b2491c9bb6f2c1d356c378dd79d53e3c
Author: Boris Brezillon <[email protected]> Date: Wed Nov 6 15:52:45 2019 +0100 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 <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> --- src/gallium/drivers/panfrost/pan_context.c | 1 + 1 file changed, 1 insertion(+) 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); _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
