From 9f292219bfd7dbbbfe5a94096143f0942e72fd7e Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 9 Jun 2015 12:29:37 -0700 Subject: [PATCH] vk/compiler: Free more of prog_data when tearing down a pipeline --- src/vulkan/compiler.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/vulkan/compiler.cpp b/src/vulkan/compiler.cpp index 28271edaabe..de4d8839f70 100644 --- a/src/vulkan/compiler.cpp +++ b/src/vulkan/compiler.cpp @@ -1003,9 +1003,13 @@ anv_compiler_run(struct anv_compiler *compiler, struct anv_pipeline *pipeline) void anv_compiler_free(struct anv_pipeline *pipeline) { - for (uint32_t stage = 0; stage < VK_NUM_SHADER_STAGE; stage++) - if (pipeline->prog_data[stage]) + for (uint32_t stage = 0; stage < VK_NUM_SHADER_STAGE; stage++) { + if (pipeline->prog_data[stage]) { free(pipeline->prog_data[stage]->map_entries); + ralloc_free(pipeline->prog_data[stage]->param); + ralloc_free(pipeline->prog_data[stage]->pull_param); + } + } } } -- 2.30.2