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@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
Boris Brezillon 2019-11-06 15:49:43 +01:00
parent ddc588ff71
commit 8c8e4fd5c6
1 changed files with 2 additions and 0 deletions

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