mesa: add bind_sampler() helper