turnip: rework render_tiles loop
authorJonathan Marek <jonathan@marek.ca>
Fri, 19 Jun 2020 00:51:11 +0000 (20:51 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 3 Jul 2020 14:49:10 +0000 (14:49 +0000)
commit4ac851ea2534de797b765db6554ea92afc19bdc1
treeda471f3ef20f3850a3a943dab24d1630a990cfb6
parent8898ebce1a1b469b6fd88415d414b3380fe05b88
turnip: rework render_tiles loop

Loop through pipes and then loop over the tiles in that pipe instead of
looping over all tiles then having to calculate the pipe # and slot #.

Mainly this avoids the hard to follow "config_get_tile" logic, but should
also be a gain due to better use of cache with the VSC data.

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