Module: Mesa Branch: main Commit: ae6ae84a753f9f77365b471a904ca21ad91ed61f URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ae6ae84a753f9f77365b471a904ca21ad91ed61f
Author: M Henning <[email protected]> Date: Fri May 12 13:14:51 2023 -0400 nv50,nvc0: Free nir from blitter fp shader Fixes: d11145e837 ("nv50,nvc0: Use nir in nv50_blitter_make_fp") Reviewed-by: Karol Herbst <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22997> --- src/gallium/drivers/nouveau/nv50/nv50_surface.c | 2 +- src/gallium/drivers/nouveau/nvc0/nvc0_surface.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/nouveau/nv50/nv50_surface.c b/src/gallium/drivers/nouveau/nv50/nv50_surface.c index 787fad52da3..d1dc1d6ea3b 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_surface.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_surface.c @@ -1873,7 +1873,7 @@ nv50_blitter_destroy(struct nv50_screen *screen) struct nv50_program *prog = blitter->fp[i][m]; if (prog) { nv50_program_destroy(NULL, prog); - FREE((void *)prog->pipe.tokens); + ralloc_free((void *)prog->pipe.ir.nir); FREE(prog); } } diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c b/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c index 9e415f12991..7f9ca5ee1d4 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c @@ -1767,7 +1767,7 @@ nvc0_blitter_destroy(struct nvc0_screen *screen) struct nvc0_program *prog = blitter->fp[i][m]; if (prog) { nvc0_program_destroy(NULL, prog); - FREE((void *)prog->pipe.tokens); + ralloc_free((void *)prog->pipe.ir.nir); FREE(prog); } }
