zink: add scaling factor for descriptor set bucket allocations
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 24 Sep 2020 15:51:12 +0000 (11:51 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 12 Mar 2021 16:32:52 +0000 (16:32 +0000)
commit840ea21fa105928c79e77a4843f6c9ebca2b52b1
tree0088c2e485915399ca03107e59648c65d8ed30d7
parentbd78710d217787fd5118b2c4d342e3720f5d779e
zink: add scaling factor for descriptor set bucket allocations

now descriptor sets allocate in increasingly large batches based on how many
sets a program has allocated, multiplying by 10 any time the sets hit a power of
10, e.g., if 100 sets are allocated, we now allocate in batches of 100

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9348>
src/gallium/drivers/zink/zink_program.c