diff options
author | Jason Ekstrand <[email protected]> | 2017-07-11 08:13:13 -0700 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-08-03 00:19:06 +0100 |
commit | 2bd9d289c0fba9600d72d4065fbbd13a90f1c18a (patch) | |
tree | adbcd4ee9ca2545c13e2ddef8e534c354074ef3e | |
parent | 0a0289d73d662364872ec21d0056bb30cc1b6163 (diff) |
anv: Stop leaking the no_aux sampler surface state
Reviewed-by: Lionel Landwerlin <[email protected]>
Cc: [email protected]
(cherry picked from commit cbdfd1daa24ee9a7a612f7b0e9aa4610af05e211)
-rw-r--r-- | src/intel/vulkan/anv_image.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index ba1873e4dac..13a85b2e080 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -773,6 +773,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); |