mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
anv: fix leak of custom border colors
Inside a HAVE_VALGRIND section.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 4dad2a4a6f ("anv: enable shader border color capture/replay")
Reviewed-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29057>
This commit is contained in:
parent
e260b16b11
commit
ae6d20815a
1 changed files with 3 additions and 1 deletions
|
|
@ -4040,6 +4040,9 @@ void anv_DestroyDevice(
|
|||
device->companion_rcs_cmd_pool, NULL);
|
||||
}
|
||||
|
||||
if (device->vk.enabled_extensions.EXT_descriptor_buffer)
|
||||
anv_state_reserved_array_pool_finish(&device->custom_border_colors_db);
|
||||
|
||||
#ifdef HAVE_VALGRIND
|
||||
/* We only need to free these to prevent valgrind errors. The backing
|
||||
* BO will go away in a couple of lines so we don't actually leak.
|
||||
|
|
@ -4053,7 +4056,6 @@ void anv_DestroyDevice(
|
|||
anv_state_pool_free(&device->dynamic_state_db_pool, device->cps_states_db);
|
||||
anv_state_pool_free(&device->dynamic_state_db_pool, device->slice_hash_db);
|
||||
anv_state_pool_free(&device->dynamic_state_db_pool, device->border_colors_db);
|
||||
anv_state_reserved_array_pool_finish(&device->custom_border_colors_db);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue