anv: Stop leaking the no_aux sampler surface state

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable@lists.freedesktop.org
This commit is contained in:
Jason Ekstrand 2017-07-11 08:13:13 -07:00
parent bd41564746
commit cbdfd1daa2

View file

@ -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);