st/mesa: fix incorrect loop over instruction src regs