mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-15 13:50:29 +01:00
vk/compiler: Free more of prog_data when tearing down a pipeline
This commit is contained in:
parent
66b00d5e5a
commit
9f292219bf
1 changed files with 6 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue