ethosu: Specifying SRAM size in pipe_ml_device ID

The spec format is now GEN-MACS-SRAM, e.g. "65-256-4096".

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40578>
This commit is contained in:
Tomeu Vizoso 2026-03-25 19:27:12 +01:00
parent eecb37962c
commit aff92add98

View file

@ -293,7 +293,9 @@ ethosu_screen_create(int fd,
screen->resource_destroy = ethosu_resource_destroy;
screen->get_ml_device = ethosu_ml_device_create_accel;
ethosu_screen->ml_device.base.id = "ethosu-65-256";
ethosu_screen->ml_device.base.id =
ralloc_asprintf(ethosu_screen, "ethosu-%u-256-%u",
is_u65 ? 65 : 85, ethosu_screen->info.sram_size);
set_device_callbacks(&ethosu_screen->ml_device);
return screen;