From 531549d9fc7b34c4b36e0ce3d2be4e35e1040ae6 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 8 Jun 2015 14:27:02 -0700 Subject: vk/pipeline: Move freeing the program stream to pipeline.c It's created in pipeline.c so we should free it there. --- src/vulkan/compiler.cpp | 2 -- src/vulkan/pipeline.c | 1 + 2 files changed, 1 insertion(+), 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); } -- cgit v1.2.3