diff --git a/.pick_status.json b/.pick_status.json index 07549eccc56..a2c3f701a38 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -164,7 +164,7 @@ "description": "anv: fix leak of custom border colors", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "4dad2a4a6fd76d8bc889d655c812a6f0ba757ed7", "notes": null diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 142ca21cf44..c85bf3ae17f 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -4032,6 +4032,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. @@ -4045,7 +4048,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