zink: rework ssbo indexing and binding
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 7 Aug 2020 23:16:01 +0000 (19:16 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 28 Jan 2021 14:34:28 +0000 (14:34 +0000)
commitb0847a43245c6efdd17ad4bd03ef52c72167fa65
tree0f004191d7b7d0b03fdc48db6a41abdefa4c6696
parentdeeafe47b6d46a72404133e1ef3dd9819bc07687
zink: rework ssbo indexing and binding

this is actually crazy, but there's no other way to do it from the variable.
ideally, nir would have a separate type for atomic counters to simplify this
and then also stop mangling binding/block index during lower_buffers

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