From: Jason Ekstrand Date: Tue, 9 Jun 2015 19:29:37 +0000 (-0700) Subject: vk/compiler: Free more of prog_data when tearing down a pipeline X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9f292219bfd7dbbbfe5a94096143f0942e72fd7e;p=mesa.git vk/compiler: Free more of prog_data when tearing down a pipeline --- 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); + } + } } }