From 3ca5a855651a64eb39768d4728f29cf6f078b5ac Mon Sep 17 00:00:00 2001 From: Linus Karl Date: Fri, 21 Nov 2025 12:22:40 +0100 Subject: [PATCH] ethos: fix build on non LP64 architectures Cc: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14310 Signed-off-by: Linus Karl (cherry picked from commit 7700ba28f5dab5be11fa24ce6343972f9475bbb8) Part-of: --- .pick_status.json | 2 +- src/gallium/drivers/ethosu/ethosu_coefs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index 0eaf89c0cfb..2f1256b4dab 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -334,7 +334,7 @@ "description": "ethos: fix build on non LP64 architectures", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null, "notes": null diff --git a/src/gallium/drivers/ethosu/ethosu_coefs.c b/src/gallium/drivers/ethosu/ethosu_coefs.c index a46cc3370cd..99cb15ff3f2 100644 --- a/src/gallium/drivers/ethosu/ethosu_coefs.c +++ b/src/gallium/drivers/ethosu/ethosu_coefs.c @@ -82,7 +82,7 @@ fill_weights(struct ethosu_subgraph *subgraph, struct ethosu_operation *operatio } pipe_buffer_unmap(subgraph->base.context, transfer_in); - long padded_size = 0; + int64_t padded_size = 0; *weights_size = mlw_reorder_encode( IFM_UBLOCK.depth, OFM_UBLOCK.depth,