tu: only support userspace-managed perfcounters on a7xx and earlier

Future kernel API for perfcounter management will likely be required for
a8xx and onwards. For a7xx and earlier, cmdstream-based selector and
counter register management is still supported.

Cc: mesa-stable
Signed-off-by: Zan Dobersek <zdobersek@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40949>
This commit is contained in:
Zan Dobersek 2026-04-14 15:09:18 +02:00 committed by Dhruv Mark Collins
parent 712a4e5691
commit c2708afbc7

View file

@ -1778,6 +1778,9 @@ tu_physical_device_init(struct tu_physical_device *device,
device->vk.pipeline_cache_import_ops = cache_import_ops;
/* gen8 and onwards must use kernel UAPI for perfcntr management */
device->is_perf_cntr_selectable &= (device->info->chip <= 7);
return VK_SUCCESS;
fail_free_name: