Capping a 4-for-4 performance, Rosario homered on the first pitch he saw from Tyler Rogers in the 8th inning, sending SF to its 10th loss in 13 games.