nvk: Handle cases of descriptor bindings with variable counts
authorGeorge Ouzounoudis <geothrock@gmail.com>
Sun, 16 Apr 2023 16:32:44 +0000 (19:32 +0300)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:32:05 +0000 (21:32 +0000)
commit0dd15199a1f235066874a206401ff00d713bfe23
tree01f35e91d11b4d6bc79abf5d4f8d9f6961177f3f
parent6a74b3e3118298fc9961173d23d8536de29a1f84
nvk: Handle cases of descriptor bindings with variable counts

We need to compute the allocated descriptor buffer size at descriptor allocation
time. So we need to split to a pre-computed size for all the other bindings
except the one with the variable count.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
src/nouveau/vulkan/nvk_descriptor_set.c
src/nouveau/vulkan/nvk_descriptor_set_layout.c
src/nouveau/vulkan/nvk_descriptor_set_layout.h