st/glsl_to_nir: gather next_stage in shader_info