[PATCH 06/10] d3d8: Introduce helpers to convert between d3d8 and wined3d multisample types.