tu: Handle UBO/SSBO descriptors with different sizes
authorConnor Abbott <cwabbott0@gmail.com>
Wed, 23 Feb 2022 15:34:59 +0000 (16:34 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 15 Mar 2022 21:36:38 +0000 (21:36 +0000)
commit1ec3d39407370f883729d032d81e53244d5b6a2b
tree1e3f83ac50e872a41a745d6a18b239343154c62a
parent5ba3ea1eb3ef92f58c9923cd449336de0f117a98
tu: Handle UBO/SSBO descriptors with different sizes

We reuse the otherwise-unused offset channel to represent the array
stride, so that reindexing works properly.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15288>
src/freedreno/vulkan/tu_descriptor_set.c
src/freedreno/vulkan/tu_shader.c