mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 09:50:36 +02:00
vk/device: Free border color states when we have valgrind
This commit is contained in:
parent
999b56c507
commit
38f5eef59d
1 changed files with 10 additions and 0 deletions
|
|
@ -412,6 +412,16 @@ VkResult anv_DestroyDevice(
|
|||
|
||||
anv_device_finish_meta(device);
|
||||
|
||||
#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.
|
||||
*/
|
||||
anv_state_pool_free(&device->dynamic_state_pool,
|
||||
device->float_border_colors);
|
||||
anv_state_pool_free(&device->dynamic_state_pool,
|
||||
device->uint32_border_colors);
|
||||
#endif
|
||||
|
||||
anv_bo_pool_finish(&device->batch_bo_pool);
|
||||
anv_block_pool_finish(&device->dynamic_state_block_pool);
|
||||
anv_block_pool_finish(&device->instruction_block_pool);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue