From b1fcc30ff0b27b4d74f0a3e68846076dd1e22d15 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 22 Jul 2015 17:51:26 -0700 Subject: [PATCH] vk/meta: Destroy shader modules --- src/vulkan/anv_meta.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vulkan/anv_meta.c b/src/vulkan/anv_meta.c index f2629156f3c..8ee7eb012e6 100644 --- a/src/vulkan/anv_meta.c +++ b/src/vulkan/anv_meta.c @@ -141,6 +141,7 @@ anv_device_init_meta_clear_state(struct anv_device *device) }, &device->meta_state.clear.pipeline); + anv_DestroyShaderModule(anv_device_to_handle(device), fsm); anv_DestroyShader(anv_device_to_handle(device), fs); } @@ -476,7 +477,9 @@ anv_device_init_meta_blit_state(struct anv_device *device) }, &device->meta_state.blit.pipeline); + anv_DestroyShaderModule(anv_device_to_handle(device), vsm); anv_DestroyShader(anv_device_to_handle(device), vs); + anv_DestroyShaderModule(anv_device_to_handle(device), fsm); anv_DestroyShader(anv_device_to_handle(device), fs); } -- 2.30.2