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

Author: Boris Brezillon <[email protected]>
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 <[email protected]>
Reviewed-by: Alyssa Rosenzweig <[email protected]>

---

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

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to