turnip: improve binning pipe layout config
authorJonathan Marek <jonathan@marek.ca>
Tue, 17 Dec 2019 22:22:46 +0000 (17:22 -0500)
committerJonathan Marek <jonathan@marek.ca>
Thu, 5 Mar 2020 17:48:12 +0000 (12:48 -0500)
commit036230341f4f2e7b11791708015342cf9385cf76
tree52a9203a7bb470ebb065dd406ff697326ccc79cc
parent9f9432d56c055b9704a76cad44da88d5e12f825c
turnip: improve binning pipe layout config

The old code looks the same as GL driver, but we get things like
pipe_count = {32, 1}, which seems bad.

This uses similar logic as for tiles which produces a balanced pipe_count
width/height.

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