PHOENIX -- They fought, no question about it. Scratched and clawed, too.

In the end, though, the result -- a loss -- was like too many this year.

A two-run homer by Chris Davis sparked a three-run rally in 12th inning to lead the Rangers past the D-backs, 9-8, on Thursday night in front of 19,376 at Chase Field.

The loss was the fifth in the last six games for the last-place D-backs, who lost outfielder Eric Byrnes for four to eight weeks when he was hit by a pitch in the second inning.

Texas starter Scott Feldman hit Byrnes in his left hand, fracturing his fifth metacarpal. Byrnes will require surgery.

"I didn't know where he got hit at first, his elbow or hand," D-backs manager A.J. Hinch said. "When I got out to first base, his hand was pretty swollen already. He's never going to come out of that game right then. When he went out to play catch, he couldn't put any pressure on his left hand inside his glove."

Mark Reynolds gave the D-backs a 2-0 in the first with a homer.

It was the first of two homers for Reynolds. The second came in the eighth and it tied the game at 6, giving him 21 on the season.

"He can put a team on his back and deliver some big blows," Hinch said. "It's the threat, that every time up there he has the chance to change the game. Up by a few runs, down by a few runs, you always feel he's going to have an impact at-bat. Obviously, proud of him the way he battled back and put us in position to win the game, and then we just couldn't scratch across another run."

After the game, Reynolds was more concerned with an error he made during the Rangers' three-run outburst in the third inning, a muffed grounder at first.

"It's tough because we battled and kept it tight," Reynolds said. "If I don't make that error, we probably win that game. It's just a tough day all around."

After Reynolds tied the game, the D-backs had a chance to win it in the bottom of the ninth when Justin Upton strolled to the plate with two outs and runners at first and second.

The red-hot Upton had been on base in each of his previous four plate appearances and has been the best hitter on the team this year. Rangers reliever Jason Grilli, though, was able to get Upton to bounce to third for the inning-ending forceout.

The Rangers finally broke through in the 12th when, with two outs, Chris Davis hit a two-run homer off reliever Esmerling Vasquez, the eighth of nine pitchers Arizona used on the night. David Murphy followed with a homer of his own to push the Texas lead to 9-6.

The D-backs kept battling in the bottom half of the inning with Miguel Montero driving in a pair of runs with a two-out hit to center.

Jason Jennings, the seventh Rangers pitcher on the night, got Ryan Roberts to bounce into a fielder's choice to end the game.

"Any time you come back like that, it's disheartening to end up on the losing end," Hinch said. "We kind of woke up late in the game and really made a push. The effort was there, the energy was there. They just outlasted us."