mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 02:10:12 +01:00
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:
parent
bd41564746
commit
cbdfd1daa2
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue