zink: implement get_ssbo_size nir intrinsic
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Sun, 9 Aug 2020 13:30:29 +0000 (09:30 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 28 Jan 2021 14:34:28 +0000 (14:34 +0000)
commit388f43c036430367e2c6a546494e51378327fcea
tree01c29b8ebc2ca3da2553eb02c093cf186e0810ef
parent313c77f326b44d8c8901e723f71bd5de38de6725
zink: implement get_ssbo_size nir intrinsic

this is a little hacky since we're still using unpacked layout for everything,
requiring that we "adjust" the value we pass back to the user for std430 to
be the expected value as though we were using packed layout

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