Adiabatic evolution on a spatial-photonic Ising machine