wined3d: Introduce a separate function to calculate the pitch for a given format...