turnip: fix tile->slot calculation
authorJonathan Marek <jonathan@marek.ca>
Tue, 17 Dec 2019 22:29:02 +0000 (17:29 -0500)
committerJonathan Marek <jonathan@marek.ca>
Thu, 5 Mar 2020 17:53:29 +0000 (12:53 -0500)
commit55dac91adc40db191c385f9a2ce393f46dd9b859
tree9cd84cb80f6ea58ecfafe889f2b3b3343cd3904b
parent036230341f4f2e7b11791708015342cf9385cf76
turnip: fix tile->slot calculation

Fixes HW binning cases when the horizontal number of tiles isn't divisible
by the horizontal number of pipes (only happens with more than 32 tiles).

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3142>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3142>
src/freedreno/vulkan/tu_cmd_buffer.c