gallivm: fix lp_build_sample_offset() crash when indexing a 1-D texture