From 1f579379c17c4ab336478c3765f907736ffc8689 Mon Sep 17 00:00:00 2001 From: "Rob Herring (Arm)" Date: Tue, 14 Apr 2026 09:26:05 -0500 Subject: [PATCH] ethosu: Rename ethosu_lower_add to ethosu_lower_eltwise The ethosu_lower_add() function can handle other element wise operations such as multiply, minimum, and maximum, so rename it in preparation to add those operations. Signed-off-by: Rob Herring (Arm) Part-of: --- src/gallium/drivers/ethosu/ethosu_lower.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/ethosu/ethosu_lower.c b/src/gallium/drivers/ethosu/ethosu_lower.c index dc46419b887..f79ba0bbbe1 100644 --- a/src/gallium/drivers/ethosu/ethosu_lower.c +++ b/src/gallium/drivers/ethosu/ethosu_lower.c @@ -372,9 +372,9 @@ is_sub_shape(struct pipe_tensor *sub, struct pipe_tensor *super) } static void -ethosu_lower_add(struct ethosu_subgraph *subgraph, - const struct pipe_ml_operation *poperation, - struct ethosu_operation *operation) +ethosu_lower_eltwise(struct ethosu_subgraph *subgraph, + const struct pipe_ml_operation *poperation, + struct ethosu_operation *operation) { operation->type = ETHOSU_OPERATION_TYPE_ELTWISE; int ifm_idx = 0; @@ -506,7 +506,7 @@ ethosu_lower_graph(struct ethosu_subgraph *subgraph, } case PIPE_ML_OPERATION_TYPE_ADD: { - ethosu_lower_add(subgraph, &poperations[i], &operation); + ethosu_lower_eltwise(subgraph, &poperations[i], &operation); util_dynarray_append(&subgraph->operations, operation); break; }