mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
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:
parent
eecb37962c
commit
aff92add98
1 changed files with 3 additions and 1 deletions
|
|
@ -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(ðosu_screen->ml_device);
|
||||
|
||||
return screen;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue