nir/lower_ssbo: Don't set align_* for atomics
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 6 Aug 2020 13:13:32 +0000 (09:13 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 11 Aug 2020 09:00:11 +0000 (09:00 +0000)
commit5cf7eec6b153baa69788938cac902e59da965d62
tree772acb13f16ce62a0026d8ef5b0f5caab5776d95
parent2d010d3dc5f210336d283caaf6453c52cbab6c31
nir/lower_ssbo: Don't set align_* for atomics

Fixes crashes when lowering atomic SSBOs:

   run: ../src/compiler/nir/nir.h:1875: nir_intrinsic_align_mul: Assertion `info->index_map[NIR_INTRINSIC_ALIGN_MUL] > 0' failed.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6204>
src/compiler/nir/nir_lower_ssbo.c