Mesa (master): panfrost: Destroy the upload manager allocated in panfrost_create_context()

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


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

Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Wed Nov  6 15:49:43 2019 +0100

panfrost: Destroy the upload manager allocated in panfrost_create_context()

pipe->stream_uploader has been allocated with u_upload_create_default()
in panfrost_create_context(), let's destroy it in the context destroy
path.

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 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c
index 14996b61661..46fce94eff5 100644
--- a/src/gallium/drivers/panfrost/pan_context.c
+++ b/src/gallium/drivers/panfrost/pan_context.c
@@ -2448,6 +2448,8 @@ panfrost_destroy(struct pipe_context *pipe)
         if (panfrost->blitter_wallpaper)
                 util_blitter_destroy(panfrost->blitter_wallpaper);
 
+        u_upload_destroy(pipe->stream_uploader);
+
         ralloc_free(pipe);
 }
 




More information about the mesa-commit mailing list