nir: Set the alignment for SSBO lowering
authorIcecream95 <ixn@keemail.me>
Fri, 17 Jul 2020 11:26:41 +0000 (23:26 +1200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 17 Jul 2020 18:03:50 +0000 (18:03 +0000)
commit2aa507f87a6eddb4786d93eb4148093035e8bcff
tree978801b56b9c8302f677b5efd1c88df503d7c326
parentd735f075a6aae821c06de1c82a5ebe4430b94674
nir: Set the alignment for SSBO lowering

The alignment can just be copied from the source intrinsic.

Fixes the assertion
nir_intrinsic_align_offset(instr) < nir_intrinsic_align_mul(instr)

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5949>
src/compiler/nir/nir_lower_ssbo.c