nvk: Use max alignment for descriptor pool sizes
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Tue, 31 Jan 2023 02:11:53 +0000 (20:11 -0600)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:31:57 +0000 (21:31 +0000)
commit24c0aa3a93eeab2a0700fb3e1b60c3087e0d54d0
tree6487756691462018a0fa9a8c3ff8a9573a17dba9
parentb7acd1030d3d722d1a47b0f004d8fb0c6aa46572
nvk: Use max alignment for descriptor pool sizes

Since we only know the number of each descriptor type and not their
groupings, we don't know how alignments will compound.  Figure out the
maximum alignment and then use that for everything to ensure that, no
matter how they're combined, we always have enough room.

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