summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-06-09 12:29:37 -0700
committerJason Ekstrand <[email protected]>2015-06-09 12:36:23 -0700
commit9f292219bfd7dbbbfe5a94096143f0942e72fd7e (patch)
tree7e1a74b57ce477bb9936265893fda673c3d02560 /src
parent66b00d5e5a64dfa63f34514b01f6d01168f9a6a7 (diff)
vk/compiler: Free more of prog_data when tearing down a pipeline
Diffstat (limited to 'src')
-rw-r--r--src/vulkan/compiler.cpp8
1 files 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);
+ }
+ }
}
}