zink: modify ubo loading in ntv to work for ssbos
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 4 Aug 2020 18:24:54 +0000 (14:24 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 14 Jan 2021 18:13:28 +0000 (18:13 +0000)
commit400c7743f6323ef1c738e07c4f990cb8d857fb81
treeeca09d53a3e9a2990ef4244902b3113b4c1652a5
parent3dd5500f7b2957563a116228b8d29453cd981783
zink: modify ubo loading in ntv to work for ssbos

if ssbo variables are declared using the same structure as ubos, then
the mechanics here are identical, and we can just add a couple extra lines
to handle the atomic ops and different array usage

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8330>
src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c