glsl: handle indirectly indexed input registers in linker