nir: Add alignment parameters to SSBO, UBO, and shared access
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 13 Nov 2018 15:45:03 +0000 (09:45 -0600)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 16 Nov 2018 01:59:42 +0000 (19:59 -0600)
commitd34fd81e7668b14158d63ade844a0e260b6f9152
tree369c2a2d80630c70bd899485e7c7df3624c7db43
parentfb127f77295fb9409e089b9267fff32b5f51a0a2
nir: Add alignment parameters to SSBO, UBO, and shared access

This also changes spirv_to_nir and glsl_to_nir to set them.  The one
place that doesn't set them is shared memory access lowering in
nir_lower_io.  That will have to be updated before any consumers of it
can effectively use these new alignments.

Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Acked-by: Karol Herbst <kherbst@redhat.com>
src/compiler/glsl/glsl_to_nir.cpp
src/compiler/nir/nir.h
src/compiler/nir/nir_intrinsics.py
src/compiler/nir/nir_lower_atomics_to_ssbo.c
src/compiler/nir/nir_print.c
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_variables.c