modesetting: Move ModifyPixmapHeader calls out of if/else branches.
Both branches called ModifyPixmapHeader with essentially the same parameters. By using new_pixels in the shadowfb case, we can make them completely the same, and move them out a level, for simplicity. Signed-off-by: Kenneth Graunke <email@example.com> Tested-by: Jason Ekstrand <firstname.lastname@example.org> Reviewed-by: Keith Packard <email@example.com>
Showing with 6 additions and 10 deletions