R600/SI: fix shadow mapping for 1D and 2D array textures