nir/spirv: Add the option to keep ViewIndex as an input