Mesa (main): zink: free local shader nirs on program free
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Aug 30 21:26:50 UTC 2021
Module: Mesa
Branch: main
Commit: 441018a173fbeca0eeb5fe532af8c84965331c73
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=441018a173fbeca0eeb5fe532af8c84965331c73
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Mon Aug 30 11:30:46 2021 -0400
zink: free local shader nirs on program free
leak--
Fixes: 61f2667cf5d ("zink: remove gfx program slot mapping")
Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12630>
---
src/gallium/drivers/zink/zink_program.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/drivers/zink/zink_program.c b/src/gallium/drivers/zink/zink_program.c
index 8de9d30a524..91662f6472e 100644
--- a/src/gallium/drivers/zink/zink_program.c
+++ b/src/gallium/drivers/zink/zink_program.c
@@ -685,6 +685,7 @@ zink_destroy_gfx_program(struct zink_screen *screen,
prog->shaders[i] = NULL;
destroy_shader_cache(screen, &prog->base.shader_cache[i]);
}
+ ralloc_free(prog->nir[i]);
}
unsigned max_idx = ARRAY_SIZE(prog->pipelines);
More information about the mesa-commit
mailing list