diff options
author | Jason Ekstrand <[email protected]> | 2017-07-11 08:13:13 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-07-17 08:18:46 -0700 |
commit | cbdfd1daa24ee9a7a612f7b0e9aa4610af05e211 (patch) | |
tree | fad7fc1cb8c5766458621b6f7d5b8931dddb2a9c /src/intel | |
parent | bd41564746ca4f4bd46185b99754eaa012c359e5 (diff) |
anv: Stop leaking the no_aux sampler surface state
Reviewed-by: Lionel Landwerlin <[email protected]>
Cc: [email protected]
Diffstat (limited to 'src/intel')
-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 c84fc8ddeab..a4cf6f80641 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); |