ac/nir: Implement input attachments with layered rendering.