From 566166b0aa62b420a08f05599c527b8ec508fa34 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Thu, 24 Oct 2024 09:51:59 +0200 Subject: [PATCH] etnaviv/ml: Fix in_image_slice in transposes when width != height Reviewed-by: Philipp Zabel Part-of: --- src/gallium/drivers/etnaviv/etnaviv_ml_tp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/etnaviv/etnaviv_ml_tp.c b/src/gallium/drivers/etnaviv/etnaviv_ml_tp.c index 87c5272f56a..77246b0c705 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_ml_tp.c +++ b/src/gallium/drivers/etnaviv/etnaviv_ml_tp.c @@ -256,7 +256,7 @@ create_transpose_config(struct etna_ml_subgraph *subgraph, const struct etna_ope map->in_image_y_size = operation->input_height; map->in_image_z_size = operation->input_width; map->in_image_stride = operation->input_channels; - map->in_image_slice = operation->input_width * operation->input_channels; + map->in_image_slice = operation->input_height * operation->input_channels; map->in_window_x_end = operation->input_channels - 1; map->in_window_y_end = operation->input_height - 1; map->in_tile_y_size = operation->input_height;