From: Rob Clark Date: Tue, 29 Sep 2020 17:00:13 +0000 (-0700) Subject: freedreno: Don't leak LRZ bo's X-Git-Tag: upstream/21.0.0~4876 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=16a3a563212733c1d8ec699c956a8ab8a00ea352;p=platform%2Fupstream%2Fmesa.git freedreno: Don't leak LRZ bo's Signed-off-by: Rob Clark Part-of: --- diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c index e25b58c..b4674da 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.c +++ b/src/gallium/drivers/freedreno/freedreno_resource.c @@ -804,6 +804,8 @@ fd_resource_destroy(struct pipe_screen *pscreen, fd_bc_invalidate_resource(rsc, true); if (rsc->bo) fd_bo_del(rsc->bo); + if (rsc->lrz) + fd_bo_del(rsc->lrz); if (rsc->scanout) renderonly_scanout_destroy(rsc->scanout, fd_screen(pscreen)->ro);