gallivm: add gather support to sampler interface