From 5bdbbe5399cc0c5803a474b4fc82fa8ff93fd763 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Sat, 24 Sep 2022 18:42:24 +0200 Subject: [PATCH] r600/sfn: Delete final lowered nir shader early Since this is no longer needed we can as well free the memory right away instead of waiting until the parent shader is freed. Signed-off-by: Gert Wollny Part-of: --- src/gallium/drivers/r600/sfn/sfn_nir.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/r600/sfn/sfn_nir.cpp b/src/gallium/drivers/r600/sfn/sfn_nir.cpp index 9a142415e57..93b0b43d3b2 100644 --- a/src/gallium/drivers/r600/sfn/sfn_nir.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_nir.cpp @@ -913,5 +913,7 @@ int r600_shader_from_nir(struct r600_context *rctx, } else { r600::sfn_log << r600::SfnLog::shader_info << "This is not a Geometry shader\n"; } + ralloc_free(sh); + return 0; }