Buster Posey drove in both runs and Madison Bumgarner did the rest, going eight masterful innings as the Giants beat the Dodgers Tuesday.