Mesa (master): panfrost: Release the ctx->pipe_framebuffer ref

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Nov 7 07:50:42 UTC 2019


Module: Mesa
Branch: master
Commit: b60ed3c7b2491c9bb6f2c1d356c378dd79d53e3c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b60ed3c7b2491c9bb6f2c1d356c378dd79d53e3c

Author: Boris Brezillon <boris.brezillon at collabora.com>
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 <boris.brezillon at collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>

---

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




More information about the mesa-commit mailing list