radv: finish tools after cleaning meta resources

Otherwise, the number of registered RGP pipelines could be non-zero
and this will assert.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32370>
This commit is contained in:
Samuel Pitoiset
2024-11-27 11:05:25 +01:00
committed by Marge Bot
parent 851a8a481b
commit df52c70b8a
+1 -3
View File
@@ -1064,8 +1064,6 @@ radv_destroy_device(struct radv_device *device, const VkAllocationCallbacks *pAl
{
radv_device_finish_perf_counter(device);
radv_device_finish_tools(device);
if (device->gfx_init)
radv_bo_destroy(device, NULL, device->gfx_init);
@@ -1090,7 +1088,7 @@ radv_destroy_device(struct radv_device *device, const VkAllocationCallbacks *pAl
_mesa_hash_table_destroy(device->rt_handles, NULL);
radv_device_finish_meta(device);
radv_device_finish_tools(device);
radv_device_finish_memory_cache(device);
radv_destroy_shader_upload_queue(device);