FRESNO, California (Ticker) -- In his final home game, David Carr went out in style.
Carr threw a pair of touchdown passes and ran for two scores as No. 22 Fresno State recorded its eighth straight win over San Jose State, 40-21, in a Western Athletic Conference matchup.
The senior became the first Fresno State quarterback to throw for more than 3,800 yards in a season. His total of 3,876 eclipsed the mark of current Seattle Seahawk Trent Dilfer, who had 3,799.
After the contest, Fresno State accepted a bid to the Silicon Valley Football Classic, representing the first time in school history the Bulldogs will appear in three consecutive bowl games.
"We are going to play a big-name opponent. I know Michigan State, Clemson and North Carolina have been mentioned," Fresno State coach Pat Hill said. "When I came here, our goal was to have winning seasons. Now we've been to three bowl games in a row and have been talking about going to a BCS bowl."
Carr completed 21-of-36 passes for 328 yards in his home finale for the Bulldogs (10-2, 6-2 WAC) to top the 300-yard mark for the eighth time in nine games. He also extended his school record with 36 touchdown passes against just seven interceptions.
Paris Gaines also shined in his final outing at Bulldog Stadium, rushing for 108 yards on 18 carries with a touchdown, as Fresno State kept alive its shot at a share of the WAC title.
The Bulldogs need Louisiana Tech to lose its finale to Tulsa (1-9) on Saturday.
Edell Shepherd caught a pair of TD passes, including an 87-yarder just 20 seconds into the contest, and totaled 264 receiving yards. But San Jose State (3-8, 3-5) lost for the third time in its last four games.
Shepherd has caught 46 passes for 989 yards in his last six games.
Carr responded to the early score with an eight-yard TD toss to freshman Bernard Berrian. Berrian accounted for 203 all-purpose yards, increasing his single-season school record to 2,370.
After Marcus Arroyo's one-yard scoring pass to Brandon Miles gave San Jose State a 14-7 advantage, Fresno State put 26 unanswered points on the board.
The Spartans did not help matters by throwing four interceptions.
"If we don't turn the ball over, we win the football game," San Jose State coach Fitz Hill said. "There's no question that we self-destructed. In my opinion, we should have had 24-28 points if we would have gone in and made some field goals before halftime."
Carr capped a seven-play, 39-yard drive with a two-yard run to make it 14-13. He rolled up a career-high 61 rushing yards.
After missing the extra point, Asen Asparuhov took sole possession of first place on the Bulldogs' single-season list with his 21st of the season. The 32-yarder put Fresno State ahead for good, 16-14, with two seconds left in the half.
"San Jose State played very hard, but we knew they would," Hill said. "Today was a big game for them and we just ended up making some plays in the end. It was a very, very hard-fought football game."
Asparuhov's 23-yard field goal in the second half was sandwiched by Gaines' two-yard TD run in the third quarter and freshman Rodney Wright's 27-yard touchdown catch with 12:58 left to open a commanding 33-14 lead.
Just 22 seconds later, Shepherd hauled in a 53-yard TD reception to cut San Jose State's deficit to 11 points. Off a trick play, receiver-return specialist Charles Pauley completed the pass.
But Carr answered, finishing a nine-play, 65-yard drive with his second TD run of the game.
Fresno State amassed 610 total yards, its highest total since 1999.