nir/lower_tex: Update ->sampler_dim value before calling get_texture_size()