diff options
author | Jason Ekstrand <[email protected]> | 2015-06-08 14:27:02 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-06-08 14:27:04 -0700 |
commit | 531549d9fc7b34c4b36e0ce3d2be4e35e1040ae6 (patch) | |
tree | 1cdb54ffcd3e9f4d7dc290d0bf1e72fadbd1ad8b | |
parent | 66a4dab89ad0c5788a4bfa23b1c91f7ed977db06 (diff) |
vk/pipeline: Move freeing the program stream to pipeline.c
It's created in pipeline.c so we should free it there.
-rw-r--r-- | src/vulkan/compiler.cpp | 2 | ||||
-rw-r--r-- | src/vulkan/pipeline.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/vulkan/compiler.cpp b/src/vulkan/compiler.cpp index a140217c4f4..28271edaabe 100644 --- a/src/vulkan/compiler.cpp +++ b/src/vulkan/compiler.cpp @@ -1006,8 +1006,6 @@ anv_compiler_free(struct anv_pipeline *pipeline) for (uint32_t stage = 0; stage < VK_NUM_SHADER_STAGE; stage++) if (pipeline->prog_data[stage]) free(pipeline->prog_data[stage]->map_entries); - - anv_state_stream_finish(&pipeline->program_stream); } } diff --git a/src/vulkan/pipeline.c b/src/vulkan/pipeline.c index f5f43d5a76e..1a193d91e09 100644 --- a/src/vulkan/pipeline.c +++ b/src/vulkan/pipeline.c @@ -379,6 +379,7 @@ anv_pipeline_destroy(struct anv_device *device, anv_compiler_free(pipeline); anv_reloc_list_finish(&pipeline->batch.relocs, pipeline->device); + anv_state_stream_finish(&pipeline->program_stream); anv_state_pool_free(&device->dynamic_state_pool, pipeline->blend_state); anv_device_free(pipeline->device, pipeline); } |