ac: teach get_ac_sampler_dim() about subpass attachments