etnaviv/nn: Ensure tile_y is > 0

A zero tile dimension doesn't make sense.

Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28879>
This commit is contained in:
Tomeu Vizoso 2024-02-09 16:22:36 +01:00 committed by Marge Bot
parent e70ea63a17
commit baebd6f43d
1 changed files with 1 additions and 0 deletions

View File

@ -625,6 +625,7 @@ calculate_tiling(struct etna_context *ctx, const struct etna_operation *operatio
if (operation->stride > 1 && tile_height % 2 > 0)
tile_height -= 1;
tile_height = MAX2(tile_height, 1);
superblocks = calc_superblocks(ctx, operation, tile_height, interleave_mode);
if (tile_width_out)