turnip: make tiling config part of framebuffer state
authorJonathan Marek <jonathan@marek.ca>
Fri, 19 Jun 2020 00:39:39 +0000 (20:39 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 3 Jul 2020 14:49:10 +0000 (14:49 +0000)
commit8898ebce1a1b469b6fd88415d414b3380fe05b88
tree88b360d84d49ad6623206ea1c92d143633ff269c
parent31392f837110f17c6037b4861056a891e078c083
turnip: make tiling config part of framebuffer state

Compute the tiling config at framebuffer creation time. A framebuffer will b
be re-used multiple times, so this will avoid having to re-calculate the
tiling config every time a command buffer is recorded.

The tiling config already couldn't use the render area's x1/y1 because of
hw binning, this move makes it so the render area isn't used at all for the
tiling config.

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