LUBBOCK, Texas -- After a while, it became clear Saturday night that the quarterback who had the ball last was going to win.

Fortunately for the Oklahoma Sooners, that was Baker Mayfield.

In a wild shootout that shattered several FBS records, Mayfield outdueled Texas Tech quarterback Patrick Mahomes II, as Oklahoma survived 66-59.

Mayfield's return to Jones Stadium for the first time since transferring to Oklahoma from Texas Tech in 2013 was overshadowed by the absurdity of offense.

Baker Mayfield let fly with one of his 36 throws that produced 545 passing yards and seven touchdowns in Oklahoma's 66-59 victory on Saturday night. Michael C. Johnson/USA TODAY Sports

The No. 16 Sooners and the Red Raiders broke the FBS record for combined yards in a game with 1,708, as both offenses finished with 854 yards apiece. The previous record of 1,640 yards was set by San Jose State and Nevada in 2001.

Mayfield led the Sooner onslaught with 545 yards passing and a school-record seven touchdown passes without an interception in a near-flawless outing. With Mayfield leading the way, Oklahoma became the first offense in FBS history to have a 500-yard passer, 200-rusher and 200-yard receiver in the same game.

Joe Mixon also had a monster performance, totaling 251 yards rushing, 114 yards receiving and five touchdowns, while Dede Westbrook continued his tear in conference play with 202 yards receiving and two touchdowns.

"It made for a bad combination," Tech coach Kliff Kingsbury said.

Despite Oklahoma's record-setting output, Mahomes kept the Red Raiders in the game almost single-handily, despite battling a nagging injury to his throwing shoulder.

He broke Connor Halliday's 2014 FBS record with 819 yards of total offense, and he tied the former Washington State quarterback's FBS record of 734 passing yards. Mahomes attempted 88 passes, one away from tying Halliday's mark.

Behind Mahomes, the Red Raiders converted 22 of 27 attempts on third or fourth down.

Tech, however, could never get the key stop in the second half, as Oklahoma scored touchdowns on its first five drives after halftime. On the sixth drive, the Sooners made a first down before salting away the clock.