mirror of https://gitlab.freedesktop.org/mesa/mesa
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:
parent
e70ea63a17
commit
baebd6f43d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue