turnip: consider tile_max_h when calculating tiling config
authorDanylo Piliaiev <dpiliaiev@igalia.com>
Fri, 19 Feb 2021 14:41:33 +0000 (16:41 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 19 Feb 2021 15:24:30 +0000 (15:24 +0000)
commit14a0004232683db25c392f5b4eb6fc2cdf47642f
treefd39dee06ed0b12718ea15c96be2dbe261a5bd21
parentc763d238c6c733df057db489f09ef35c69a906ba
turnip: consider tile_max_h when calculating tiling config

Otherwise we may get a tile height exceeding the maximum.

Fixes tests:
 dEQP-VK.pipeline.render_to_image.core.2d.huge.height.r8g8b8a8_unorm
 dEQP-VK.pipeline.render_to_image.core.2d.huge.height.r8g8b8a8_unorm_d16_unorm
 dEQP-VK.pipeline.render_to_image.core.2d.huge.height.r8g8b8a8_unorm_s8_uint

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9159>
ci-expects/freedreno/deqp-freedreno-a630-fails.txt
src/freedreno/vulkan/tu_util.c