zink: fix pool overflow handling on batch reset
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 12 Oct 2022 15:51:14 +0000 (11:51 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 13 Oct 2022 03:02:59 +0000 (03:02 +0000)
commit340cfa1001eabb81812ad4c311c75e7279d3feb3
treef06c4d5cac2703db43e9b012f9c5e921909fe1f8
parent6c59aeebbfbf4633731ee12b13732e75bd86bcf7
zink: fix pool overflow handling on batch reset

this mechanism worked off the previous iteration of descriptor updating,
in which pools were stored in a set to the batch state and could be iterated
normally

now, however, they're stored as a sparse array, and so the dynarray util for getting
the number of elements cannot be used

instead, use the calculated size for the array like every other accessor for
the pools to ensure correct indexing

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19053>
src/gallium/drivers/zink/zink_descriptors.c