turnip: fix tile layout logic
authorJonathan Marek <jonathan@marek.ca>
Thu, 12 Dec 2019 21:55:15 +0000 (16:55 -0500)
committerJonathan Marek <jonathan@marek.ca>
Fri, 13 Dec 2019 01:33:17 +0000 (20:33 -0500)
commit402bc111fc18b32fec9fc75f94db09c67484e15d
tree3c81956a896ab5315e9e104c71d5e4d35e9647d7
parent14cbe2dea5e510d5d2ff8b00851e8b6cea685694
turnip: fix tile layout logic

Use DIV_ROUND_UP and stop trying to increase the tile_count width/height
once tile_align_w/tile_align_h are reached.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/freedreno/vulkan/tu_cmd_buffer.c