Spurs agree to buyout with veteran forward