etnaviv/ml: Fix in_image_slice in transposes when width != height

Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32498>
This commit is contained in:
Tomeu Vizoso 2024-10-24 09:51:59 +02:00 committed by Marge Bot
parent 10bd5c23c6
commit 566166b0aa

View file

@ -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;