freedreno: Don't leak LRZ bo's
Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6900>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user