Carlos Delfino is coming back to the Bucks.

Delfino and the Bucks agreed Sunday night on a two-year, $6.5 million contract with a third non-guaranteed year that could bring the total to $9.75 million, according to a league source.

The Houston Rockets released the 6-foot-6 Delfino last week as part of their salary-shedding moves to clear the way for an agreement with center Dwight Howard, who chose to sign with the Rockets on Friday.

Delfino played for Milwaukee for three seasons from 2009 to 2012 and appeared in 178 games, starting 159. He was a reliable performer under former Bucks coach Scott Skiles, who used him at both the small forward and shooting guard positions.

Delfino has guarded some of the elite wing players in the league, including Carmelo Anthony, Kobe Bryant and LeBron James.

During the past season Delfino defended Oklahoma City star Kevin Durant in an opening-round playoff series but suffered a fractured bone in his right foot in Game 5 against the Thunder.

He had to sit out Game 6 as the Thunder beat the Rockets in six games.

Delfino had surgery after the season ended to have a bone spur removed from his foot.

He provides depth at small forward along with Luc Richard Mbah a Moute and the Bucks' first-round draft pick, 6-9 Giannis Antetokounmpo. Delfino also can play at shooting guard to support O.J. Mayo, another free-agent signing by the Bucks.

Milwaukee has picked up three key players in free agency in the last three days, with Mayo agreeing to a three-year, $24 million deal on Friday and veteran center Zaza Pachulia agreeing to a three-year, $15 million contract Saturday.

Contracts can be signed Wednesday when the league's moratorium period ends.

Delfino, 30, is the son of a basketball coach and a key member of Argentina's "Golden Generation," a group that includes Manu Ginobili, Andres Nocioni, Pablo Prigioni and Luis Scola.

Delfino helped his country win a basketball gold medal in the 2004 Athens Olympics and a bronze medal in the 2008 Beijing Olympics.

Delfino shot 36.6% from three-point range with the Bucks. He averaged 11.0 points in his first season in Milwaukee and 11.5 the following year, although he was limited to 49 games the second season due to effects of a concussion that sidelined him for several months.

He averaged 9.0 points while playing 54 games during the 2011-'12 lockout-shortened season.