gallium/tgsi_to_nir: Set nir_intrinsic_align_mul to 16 and offset to 0
authorGert Wollny <gert.wollny@collabora.com>
Mon, 13 Apr 2020 17:51:42 +0000 (19:51 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 14 Apr 2020 18:47:09 +0000 (18:47 +0000)
commitcb08f451d01571e0a570e99553624ae7b0d3d075
treeadeb46c0c75282dbcc9553ba35d9d4fd672b36bc
parent31988baba48e974240af68aff84f8c5620d2e62a
gallium/tgsi_to_nir: Set nir_intrinsic_align_mul to 16 and offset to 0

Since the alignment is now checked in the validator we must set it.

v2: Use alignement of 4, i.e. dest bit size by eight.
v3: Use alignment 16 (Rhys Perry & Jason Ekstand)
v4: Use nir_intrinsic_set_align to make it clear that align offset is 0
    (Jason)

Fixes: e78a7a182524f091e2d77ba97bfbe057c3975cab
    nir: Assert memory loads are aligned

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4544>
src/gallium/auxiliary/nir/tgsi_to_nir.c