[PATCH 5/9] d3d9: Introduce a helper to convert d3d9 transform states to wined3d states.