nir/lower_input_attachments: Support loading layer id via gl_ViewIndex