The San Antonio Spurs and Pau Gasol have agreed to a contract buyout amid reports the veteran center is set to join the Milwaukee Bucks.

Six-time All-Star Gasol, who joined the Spurs in 2016, has made only six starts this season, having suffered a stress fracture of his foot.

The 38-year-old confirmed his departure on Twitter, posting: "Today, I bid farewell to @spurs. It’s been a dream to play for 1 of most storied franchises in @NBA history, an honor to be part of Spurs family.

"To all the staff, my teammates, the coaches, RC, Pop and, above all, the fans, thank you for making this place so special. #GoSpursGo !"

The 7-0 Spaniard is still a force inside and can step outside and knock down the three. He is averaging a career-high 13.9 rebounds per 36 minutes this season, although his shooting percentages last year and again this season have set career lows.

Gasol averages 4.2 points and 4.7 rebounds in 12.2 minutes per game and has averaged 17.1 points and 9.2 rebounds in his 17 seasons.