panfrost: Destroy the upload manager allocated in panfrost_create_context()
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 6 Nov 2019 14:49:43 +0000 (15:49 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Thu, 7 Nov 2019 07:33:08 +0000 (08:33 +0100)
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@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_context.c

index 14996b616619b70948a93b5d5b08199eb41ebd89..46fce94eff58d15cb8f88f9c85a7613fdaab4d40 100644 (file)
@@ -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);
 }