zink: fix ZINK_MAX_DESCRIPTORS_PER_TYPE to stop exploding the stack
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 13 Sep 2021 11:49:54 +0000 (07:49 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 13 Sep 2021 17:46:11 +0000 (17:46 +0000)
commita45c84f2266a0e117b867bbab694f25352c603d2
treeb904b9759854bd1151d3c4afd9257a033836a19a
parenta601cae51c600adc66fa9e71bee624fa468702b0
zink: fix ZINK_MAX_DESCRIPTORS_PER_TYPE to stop exploding the stack

this isn't the max per type, it's the max that can be used for a type,
which is the max used by a shader stage * the number of shader stages

Cc: mesa-stable
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12829>
src/gallium/drivers/zink/zink_descriptors.h