Module: Mesa Branch: main Commit: 504907a7d39413f7fa50809420df019e0e964186 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=504907a7d39413f7fa50809420df019e0e964186
Author: M Henning <[email protected]> Date: Fri May 12 13:16:49 2023 -0400 nvc0: Free blitter->vp Reviewed-by: Karol Herbst <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22997> --- src/gallium/drivers/nouveau/nvc0/nvc0_surface.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c b/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c index 7f9ca5ee1d4..5c08ab4a453 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c @@ -1772,6 +1772,12 @@ nvc0_blitter_destroy(struct nvc0_screen *screen) } } } + if (blitter->vp) { + struct nvc0_program *prog = blitter->vp; + nvc0_program_destroy(NULL, prog); + ralloc_free((void *)prog->pipe.ir.nir); + FREE(prog); + } mtx_destroy(&blitter->mutex); FREE(blitter);
