[PATCH 3/3] wined3d: Factor out a get_map_pitch() helper.