mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 20:48:08 +02:00
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:
parent
945172f77e
commit
6dff2220fa
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue