From 024c70fbb3ccb1fdd0627b35662aac433c190666 Mon Sep 17 00:00:00 2001 From: "Rob Herring (Arm)" Date: Tue, 17 Feb 2026 07:47:55 -0600 Subject: [PATCH] teflon: Add multiply operation Add the plumbing for multiply operations. Signed-off-by: Rob Herring (Arm) Part-of: --- src/gallium/frontends/teflon/tfl_device.c | 6 ++++++ src/gallium/include/pipe/p_state.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/gallium/frontends/teflon/tfl_device.c b/src/gallium/frontends/teflon/tfl_device.c index 07bafa71df7..d7df96ebe45 100644 --- a/src/gallium/frontends/teflon/tfl_device.c +++ b/src/gallium/frontends/teflon/tfl_device.c @@ -182,6 +182,9 @@ fill_operation(struct teflon_delegate *delegate, TfLiteContext *tf_context, TfLi } break; } + case kTfLiteBuiltinMul: + operation->type = PIPE_ML_OPERATION_TYPE_MUL; + break; case kTfLiteBuiltinAdd: { TfLiteAddParams *params = (TfLiteAddParams *)node->builtin_data; @@ -489,6 +492,9 @@ dump_graph(struct pipe_tensor *tensors, unsigned tensor_count, struct pipe_ml_op case PIPE_ML_OPERATION_TYPE_RESIZE: teflon_debug("%-15s ", "RESIZE"); break; + case PIPE_ML_OPERATION_TYPE_MUL: + teflon_debug("%-15s ", "MUL"); + break; } char *input_buf = ralloc_strdup(NULL, ""); diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h index d47712db67c..cebc4f133c8 100644 --- a/src/gallium/include/pipe/p_state.h +++ b/src/gallium/include/pipe/p_state.h @@ -1065,6 +1065,7 @@ enum pipe_ml_operation_type { PIPE_ML_OPERATION_TYPE_TRANSPOSE, PIPE_ML_OPERATION_TYPE_STRIDED_SLICE, PIPE_ML_OPERATION_TYPE_RESIZE, + PIPE_ML_OPERATION_TYPE_MUL, }; enum pipe_ml_pooling_type {