diff options
author | Boris Brezillon <[email protected]> | 2019-11-06 15:49:43 +0100 |
---|---|---|
committer | Boris Brezillon <[email protected]> | 2019-11-07 08:33:08 +0100 |
commit | 8c8e4fd5c60d4b09d7e4153c83560f0668c3a80d (patch) | |
tree | ff69bb01e593ebc28d70a48c627ea04d752496ef /src/gallium | |
parent | ddc588ff71ef9fdb87ef476f91bc716383dbeb77 (diff) |
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]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_context.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |