[PATCH 1/9] d3d9: Introduce helpers to convert between d3d9 and wined3d multisample types.