tu: Make tile stores use a dedicated CS
authorConnor Abbott <cwabbott0@gmail.com>
Wed, 28 Jul 2021 12:27:59 +0000 (14:27 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 2 Aug 2021 11:20:25 +0000 (11:20 +0000)
commit7948c4b0b43a2a0c15c834f1e066c1e5262146b8
treeec4cc7f12a7b231216826281846ed9bf04c60138
parent1815a76e3d7dd1b05da360f177a22e36f202748b
tu: Make tile stores use a dedicated CS

We were trying to calculate how much space they need, That was already
difficult and one of the most opaque and hard-to-verify uses of sub_cs,
but it will become even more difficult with the 3D path. What's worse is
that sometimes we have to touch that path when we start touching
registers that would affect rasterization, and there's no indication
that you have to then recalculate the size etc. Just rip this out and
start keeping a separate CS for it instead. Note that this adds a small
amount of memory wastage and extra buffers (at worst one buffer per
command buffer).

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12102>
src/freedreno/vulkan/tu_cmd_buffer.c
src/freedreno/vulkan/tu_private.h