From aff92add9813f898efb7d7beaf56a8b4614b6eb9 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Wed, 25 Mar 2026 19:27:12 +0100 Subject: [PATCH] ethosu: Specifying SRAM size in pipe_ml_device ID The spec format is now GEN-MACS-SRAM, e.g. "65-256-4096". Part-of: --- src/gallium/drivers/ethosu/ethosu_device.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/ethosu/ethosu_device.c b/src/gallium/drivers/ethosu/ethosu_device.c index ee665ce94fb..55033f7e92b 100644 --- a/src/gallium/drivers/ethosu/ethosu_device.c +++ b/src/gallium/drivers/ethosu/ethosu_device.c @@ -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;