nir: add glsl_get_std140_base_alignment() helper