vk/pipeline: Actually free the program stream and dynamic pool
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 6 Jun 2015 00:14:57 +0000 (17:14 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 6 Jun 2015 00:26:26 +0000 (17:26 -0700)
src/vulkan/pipeline.c

index 6babd183f1f322cc1ac24d9b7d0f249dfe78e148..2e965245789de83404518a448aaa8d8c7b6b1162 100644 (file)
@@ -379,6 +379,8 @@ 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);
 }