panvk: Add shader core count to deviceName

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39267>
This commit is contained in:
John Anthony 2025-10-24 17:02:38 +02:00
parent 945172f77e
commit 6dff2220fa

View file

@ -431,8 +431,12 @@ panvk_physical_device_init(struct panvk_physical_device *device,
device->formats.all = pan_format_table(arch);
device->formats.blendable = pan_blendable_format_table(arch);
unsigned core_id_range;
unsigned core_count =
pan_query_core_count(&device->kmod.dev->props, &core_id_range);
memset(device->name, 0, sizeof(device->name));
sprintf(device->name, "%s", device->model->name);
sprintf(device->name, "%s MC%u", device->model->name, core_count);
result = get_core_masks(device, instance);
if (result != VK_SUCCESS)