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>
(cherry picked from commit c2708afbc7)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41104>
This commit is contained in:
Zan Dobersek 2026-04-14 15:09:18 +02:00 committed by Eric Engestrom
parent 0d6e04debe
commit c63da3365d
2 changed files with 4 additions and 1 deletions

View file

@ -2144,7 +2144,7 @@
"description": "tu: only support userspace-managed perfcounters on a7xx and earlier",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

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: