zink: handle 8/16bit ssbo storage
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 20 Jul 2021 20:40:59 +0000 (16:40 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 7 Sep 2021 13:29:57 +0000 (13:29 +0000)
commitefc4e577ed1d6e7c182667cf3f6b11b2a658119b
tree8d67f65d687ba93a1f0fe24a9200a1ceee46f2c4
parent600f7804bf1bb0bc1133aea14e110939d7432e74
zink: handle 8/16bit ssbo storage

this is a bit gross, but basically just add an array of extra spvids
so that each bitsize can have its own variables to keep the types in sync

glsl can't do this, but (future) internal mesa shaders can

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