radv: move back ac_sqtt_{init,finish}() to the right places

Now that radv/tests no longer create compute pipelines.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38285>
This commit is contained in:
Samuel Pitoiset
2025-11-06 16:20:58 +01:00
parent d371061309
commit bbaaf2fec7
2 changed files with 4 additions and 4 deletions
-4
View File
@@ -1138,8 +1138,6 @@ radv_destroy_device(struct radv_device *device, const VkAllocationCallbacks *pAl
if (device->capture_replay_arena_vas)
_mesa_hash_table_u64_destroy(device->capture_replay_arena_vas);
ac_sqtt_finish(&device->sqtt);
vk_device_finish(&device->vk);
vk_free(&device->vk.alloc, device);
}
@@ -1233,8 +1231,6 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr
/* PKT3_LOAD_SH_REG_INDEX is supported on GFX8+, but it hangs with compute queues until GFX10.3. */
device->load_grid_size_from_user_sgpr = pdev->info.gfx_level >= GFX10_3;
ac_sqtt_init(&device->sqtt);
/* If this is a NULL device, we are done here. */
if (pdev->info.family_overridden) {
*pDevice = radv_device_to_handle(device);
+4
View File
@@ -400,6 +400,8 @@ radv_sqtt_init(struct radv_device *device)
if (!radv_device_acquire_performance_counters(device))
return false;
ac_sqtt_init(sqtt);
radv_register_queues(device, sqtt);
return true;
@@ -422,6 +424,8 @@ radv_sqtt_finish(struct radv_device *device)
}
radv_unregister_queues(device, sqtt);
ac_sqtt_finish(sqtt);
}
static bool