[Mesa-dev] [PATCH 01/11] anv: Stop leaking the no_aux sampler surface state
Jason Ekstrand
jason at jlekstrand.net
Wed Jul 12 00:04:30 UTC 2017
Cc: mesa-stable at lists.freedesktop.org
---
src/intel/vulkan/anv_image.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c
index c84fc8d..a4cf6f8 100644
--- a/src/intel/vulkan/anv_image.c
+++ b/src/intel/vulkan/anv_image.c
@@ -776,6 +776,11 @@ anv_DestroyImageView(VkDevice _device, VkImageView _iview,
iview->sampler_surface_state);
}
+ if (iview->no_aux_sampler_surface_state.alloc_size > 0) {
+ anv_state_pool_free(&device->surface_state_pool,
+ iview->no_aux_sampler_surface_state);
+ }
+
if (iview->storage_surface_state.alloc_size > 0) {
anv_state_pool_free(&device->surface_state_pool,
iview->storage_surface_state);
--
2.5.0.400.gff86faf
More information about the mesa-dev
mailing list