zink: set UBO alignments in nir_intrinsic_load_uniform lowering
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 23 Apr 2020 18:21:05 +0000 (14:21 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Apr 2020 17:27:30 +0000 (17:27 +0000)
commitc68313868921f8d7125e46091cd92dbe00f845ec
tree0cecae0022a504731d1962560bf0dbfbfff92e8b
parent155033bbb3a577945f75ee8b67999f6393580531
zink: set UBO alignments in nir_intrinsic_load_uniform lowering

resolves this error
  error: nir_intrinsic_align_offset(instr) < nir_intrinsic_align_mul(instr) (../src/compiler/nir/nir_validate.c:582)
in ext_packed_depth_stencil-readdrawpixels piglit test

port of f5b14d983e5afa1b8f75e6f3692830a1ee46d1df

Fixes: fb64954d9dd ("nir: Validate that memory load/store ops work on whole bytes")
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4711>
src/gallium/drivers/zink/zink_compiler.c