zink: use array size in spirv bo length calculations
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 26 Jul 2021 17:11:18 +0000 (13:11 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 26 Jul 2021 20:59:07 +0000 (20:59 +0000)
commit1dc7b9b08b6a272693f85e956ec3c4e498823a65
treef3762640c3b714ac722bf9a55f5a0dd841032da5
parented98e54f193000156104af9cc8d797a99bd62316
zink: use array size in spirv bo length calculations

I don't know why I was dropping this, but doing so breaks drivers that have
optimization passes based on the lengths of these variables

Fixes: c1cdf30a119 ("zink: apply Delete All The Code methodology to the ubo/ssbo variables")

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12070>
src/gallium/drivers/zink/zink_compiler.c