nir: Assert memory loads are aligned
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 31 Mar 2020 04:00:34 +0000 (23:00 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 6 Apr 2020 15:57:30 +0000 (15:57 +0000)
commite78a7a182524f091e2d77ba97bfbe057c3975cab
tree04e902a9c9aa72039d98febbb0f75f5a93f8efdd
parent068a3bf0d7cda0301b3dfc2e258698c6848ca706
nir: Assert memory loads are aligned

We've had alignment parameters on these operations for a while but a
bunch of places weren't setting them.  That should be resolved now so we
can start validating that they're always set.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4441>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4441>
src/compiler/nir/nir_validate.c